Player 'enter/leave level' popups now appear for bonus courses

This commit is contained in:
MysterD 2021-08-10 22:41:43 -07:00
parent 22121eea6b
commit caf975a793
1 changed files with 2 additions and 1 deletions

View File

@ -116,11 +116,12 @@ static void network_player_update_level_popup(void) {
static s16 sCachedActStarNum = 0; static s16 sCachedActStarNum = 0;
static s16 sCachedLevelNum = 0; static s16 sCachedLevelNum = 0;
bool inBonusCourse = (gCurrCourseNum >= 16);
bool allowPopup = (sCachedCourseNum == gCurrCourseNum) bool allowPopup = (sCachedCourseNum == gCurrCourseNum)
&& (sCachedActStarNum == gCurrActStarNum) && (sCachedActStarNum == gCurrActStarNum)
&& (sCachedLevelNum == gCurrLevelNum) && (sCachedLevelNum == gCurrLevelNum)
&& (gCurrActStarNum != 99) // suppress popup for credits sequence && (gCurrActStarNum != 99) // suppress popup for credits sequence
&& (gCurrCourseNum == 0 || gCurrActStarNum != 0); // suppress popup for star selection && (inBonusCourse || gCurrActStarNum != 0); // suppress popup for star selection
sCachedCourseNum = gCurrCourseNum; sCachedCourseNum = gCurrCourseNum;
sCachedActStarNum = gCurrActStarNum; sCachedActStarNum = gCurrActStarNum;