From 60a2f1d5537e95ad73f213c996c78562deadb92a Mon Sep 17 00:00:00 2001 From: MysterD Date: Fri, 22 Apr 2022 18:53:53 -0700 Subject: [PATCH] Special stages show their level name in the pause menu again --- src/game/ingame_menu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/ingame_menu.c b/src/game/ingame_menu.c index b122b42d..35452c51 100644 --- a/src/game/ingame_menu.c +++ b/src/game/ingame_menu.c @@ -2371,7 +2371,6 @@ u8 gTextCourseArr[][7] = { void render_pause_my_score_coins(void) { // sanity check if (!COURSE_IS_VALID_COURSE(gCurrCourseNum)) { return; } - if (gCurrActNum <= 0 || gCurrActNum > 6) { return; } #ifdef VERSION_EU u8 textMyScore[][10] = { @@ -2452,7 +2451,9 @@ void render_pause_my_score_coins(void) { print_generic_string(CRS_NUM_X1, 157, strCourseNum); #endif - actName = segmented_to_virtual(actNameTbl[(gCurrCourseNum - 1) * 6 + gDialogCourseActNum - 1]); + if (gDialogCourseActNum >= 1 && gCurrActNum <= 6) { + actName = segmented_to_virtual(actNameTbl[(gCurrCourseNum - 1) * 6 + gDialogCourseActNum - 1]); + } if (starFlags & (1 << (gDialogCourseActNum - 1))) { print_generic_string(TXT_STAR_X, 140, textStar);