Skip to content

Commit

Permalink
disable first person in ccc minigame
Browse files Browse the repository at this point in the history
  • Loading branch information
kittrz committed Mar 9, 2023
1 parent d4b98ce commit 480a3c1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/game/mario.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,6 +1409,8 @@ void update_mario_geometry_inputs(struct MarioState *m) {
}
}

extern s8 gComitCam;

/**
* Handles Mario's input flags as well as a couple timers.
*/
Expand All @@ -1432,10 +1434,15 @@ void update_mario_inputs(struct MarioState *m) {
debug_print_speed_action_normal(m);
#endif
if (gCameraMovementFlags & CAM_MOVE_C_UP_MODE) {
if (m->action & ACT_FLAG_ALLOW_FIRST_PERSON) {
m->input |= INPUT_FIRST_PERSON;
} else {
if(gComitCam != 0 ) {
play_sound(SOUND_MENU_CAMERA_BUZZ, gGlobalSoundSource);
gCameraMovementFlags &= ~CAM_MOVE_C_UP_MODE;
} else {
if (m->action & ACT_FLAG_ALLOW_FIRST_PERSON) {
m->input |= INPUT_FIRST_PERSON;
} else {
gCameraMovementFlags &= ~CAM_MOVE_C_UP_MODE;
}
}
}

Expand Down

0 comments on commit 480a3c1

Please sign in to comment.