mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Prevented level change popup for players in credits
This commit is contained in:
parent
0c05fbae87
commit
36fbe2053b
1 changed files with 2 additions and 1 deletions
|
|
@ -281,7 +281,8 @@ u8 network_player_disconnected(u8 globalIndex) {
|
||||||
|
|
||||||
void network_player_update_course_level(struct NetworkPlayer* np, s16 courseNum, s16 actNum, s16 levelNum, s16 areaIndex) {
|
void network_player_update_course_level(struct NetworkPlayer* np, s16 courseNum, s16 actNum, s16 levelNum, s16 areaIndex) {
|
||||||
// display popup
|
// display popup
|
||||||
if (np->currCourseNum != courseNum && np->localIndex != 0) {
|
bool inCredits = (np->currActNum == 99);
|
||||||
|
if (np->currCourseNum != courseNum && np->localIndex != 0 && !inCredits) {
|
||||||
char* playerColorString = network_get_player_text_color_string(np->localIndex);
|
char* playerColorString = network_get_player_text_color_string(np->localIndex);
|
||||||
char popupMsg[128] = { 0 };
|
char popupMsg[128] = { 0 };
|
||||||
bool matchingLocal = (np->currCourseNum == gNetworkPlayerLocal->currCourseNum) && (np->currActNum == gNetworkPlayerLocal->currActNum);
|
bool matchingLocal = (np->currCourseNum == gNetworkPlayerLocal->currCourseNum) && (np->currActNum == gNetworkPlayerLocal->currActNum);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue