Skip to content

Commit

Permalink
level_select_menu.c: Rename D_U_801A7C34 to playMarioGreeting
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-video committed Oct 23, 2020
1 parent 8fda530 commit 1ac3295
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/menu/level_select_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static char gLevelSelect_StageNamesText[64][16] = {

static u16 gDemoCountdown = 0;
#ifndef VERSION_JP
static s16 D_U_801A7C34 = 1;
static s16 playMarioGreeting = 1;
static s16 gameOverNotPlayed = 1;
#endif

Expand Down Expand Up @@ -61,7 +61,7 @@ int run_press_start_demo_timer(s32 timer) {
timer = (s8)((struct DemoInput *) gDemo.targetAnim)->timer;
gCurrSaveFileNum = 1;
gCurrActNum = 1;
D_U_801A7C34 = 1;
playMarioGreeting = 1;
}
} else { // activity was detected, so reset the demo countdown.
gDemoCountdown = 0;
Expand Down Expand Up @@ -163,13 +163,13 @@ int intro_default(void) {
s32 sp1C = 0;

#ifndef VERSION_JP
if (D_U_801A7C34 == 1) {
if (playMarioGreeting == 1) {
if (gGlobalTimer < 0x81) {
play_sound(SOUND_MARIO_HELLO, gDefaultSoundArgs);
} else {
play_sound(SOUND_MARIO_PRESS_START_TO_PLAY, gDefaultSoundArgs);
}
D_U_801A7C34 = 0;
playMarioGreeting = 0;
}
#endif
print_intro_text();
Expand All @@ -178,7 +178,7 @@ int intro_default(void) {
play_sound(SOUND_MENU_STAR_SOUND, gDefaultSoundArgs);
sp1C = 100 + gDebugLevelSelect;
#ifndef VERSION_JP
D_U_801A7C34 = 1;
playMarioGreeting = 1;
#endif
}
return run_press_start_demo_timer(sp1C);
Expand Down

0 comments on commit 1ac3295

Please sign in to comment.