Fix romhack cam bug

This commit is contained in:
MysterD 2023-06-22 11:21:13 -07:00
parent 0975b4e28e
commit 7497b612ee
1 changed files with 1 additions and 1 deletions

View File

@ -2932,7 +2932,7 @@ void set_camera_mode(struct Camera *c, s16 mode, s16 frames) {
struct LinearTransitionPoint *start = &sModeInfo.transitionStart;
struct LinearTransitionPoint *end = &sModeInfo.transitionEnd;
if (c->mode == CAMERA_MODE_ROM_HACK && !allow_romhack_camera_override_mode(mode)) { return; }
if (c->mode == CAMERA_MODE_ROM_HACK && allow_romhack_camera_override_mode(mode)) { return; }
bool returnValue = true;
smlua_call_event_hooks_set_camera_mode_params(HOOK_ON_SET_CAMERA_MODE, c, mode, frames, &returnValue);