Player 'enter/leave level' popups now appear for bonus courses
This commit is contained in:
parent
a6904e3eff
commit
1fa46651a0
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue