Add Logging for Skipping Laps in Debug Mode (#428)

* Update race_logic.c

* Update race_logic.c
This commit is contained in:
MegaMech
2025-07-06 12:25:34 -06:00
committed by GitHub
parent 855761822c
commit 82632b112c
+6 -8
View File
@@ -795,22 +795,20 @@ void func_8028F970(void) {
if (gControllerOne->buttonPressed & U_JPAD) {
gLapCountByPlayerId[0] = 2;
play_sound2(SOUND_MENU_OPTION);
printf("[race_logic.c] [func_8028F970] Skipped laps for player 1\n");
}
if (gControllerOne->buttonPressed & R_JPAD) {
gLapCountByPlayerId[0] = 2;
gLapCountByPlayerId[1] = 2;
play_sound2(SOUND_MENU_OPTION);
printf("[race_logic.c] [func_8028F970] Skipped laps for players 1 & 2\n");
}
if (gControllerOne->buttonPressed & D_JPAD) {
gLapCountByPlayerId[0] = 2;
gLapCountByPlayerId[1] = 2;
gLapCountByPlayerId[2] = 2;
gLapCountByPlayerId[3] = 2;
gLapCountByPlayerId[4] = 2;
gLapCountByPlayerId[5] = 2;
gLapCountByPlayerId[6] = 2;
gLapCountByPlayerId[7] = 2;
for (size_t i = 0; i < NUM_PLAYERS; i++) {
gLapCountByPlayerId[i] = 2;
}
play_sound2(SOUND_MENU_OPTION);
printf("[race_logic.c] [func_8028F970] Skipped laps for all players\n");
}
}
}