Fix off setting for romhack camera (#775)
Some checks failed
Build coop / build-ubuntu (push) Has been cancelled
Build coop / build-windows (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled

This fixes the bug where the camera is immediately centered onto the player, behind the player, in every course when romhack camera is turned off.
This commit is contained in:
Sunk 2025-04-27 23:26:27 -04:00 committed by GitHub
parent d8e9cd8641
commit 7b3d51d32b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12203,11 +12203,13 @@ s32 snap_to_45_degrees(s16 angle) {
void romhack_camera_init_settings(void) {
if (gRomhackCameraSettings.modsOnly) { return; }
enum RomhackCameraOverride override = RCO_DISABLE;
enum RomhackCameraOverride override = RCO_NONE;
if (configEnableRomhackCamera == RCE_AUTOMATIC) {
override = configRomhackCameraBowserFights ? RCO_ALL : RCO_ALL_EXCEPT_BOWSER;
} else if (configEnableRomhackCamera == RCE_ON) {
override = configRomhackCameraBowserFights ? RCO_ALL_INCLUDING_VANILLA : RCO_ALL_VANILLA_EXCEPT_BOWSER;
} else if (configEnableRomhackCamera == RCE_OFF && gRomhackCameraSettings.enable != RCO_NONE) {
override = RCO_DISABLE;
}
gRomhackCameraSettings.enable = override;