Fix 50 coin 1up happening in non courses (#231)
This commit is contained in:
parent
dddbe4bd16
commit
a94565a604
|
@ -1048,7 +1048,7 @@ void update_hud_values(void) {
|
|||
gHudDisplay.coins += 1;
|
||||
play_sound(coinSound, gMarioState->marioObj->header.gfx.cameraToObject);
|
||||
|
||||
if (gServerSettings.stayInLevelAfterStar > 0 && (gHudDisplay.coins == 50 || gHudDisplay.coins == 100 || gHudDisplay.coins == 150)) {
|
||||
if (gServerSettings.stayInLevelAfterStar > 0 && gCurrCourseNum != COURSE_NONE && (gHudDisplay.coins == 50 || gHudDisplay.coins == 100 || gHudDisplay.coins == 150)) {
|
||||
gMarioState->numLives++;
|
||||
play_sound(SOUND_GENERAL_COLLECT_1UP, gGlobalSoundSource);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue