mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-12-09 17:42:55 +00:00
Player 'enter/leave level' popups now appear for bonus courses
This commit is contained in:
parent
22121eea6b
commit
caf975a793
1 changed files with 2 additions and 1 deletions
|
|
@ -116,11 +116,12 @@ static void network_player_update_level_popup(void) {
|
|||
static s16 sCachedActStarNum = 0;
|
||||
static s16 sCachedLevelNum = 0;
|
||||
|
||||
bool inBonusCourse = (gCurrCourseNum >= 16);
|
||||
bool allowPopup = (sCachedCourseNum == gCurrCourseNum)
|
||||
&& (sCachedActStarNum == gCurrActStarNum)
|
||||
&& (sCachedLevelNum == gCurrLevelNum)
|
||||
&& (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;
|
||||
sCachedActStarNum = gCurrActStarNum;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue