From 36fbe2053be4b5e64b19d157b58d27890bf0c38b Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 5 Feb 2022 10:26:38 -0800 Subject: [PATCH] Prevented level change popup for players in credits --- src/pc/network/network_player.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pc/network/network_player.c b/src/pc/network/network_player.c index 442ecb7b4..f19c9b17a 100644 --- a/src/pc/network/network_player.c +++ b/src/pc/network/network_player.c @@ -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) { // 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 popupMsg[128] = { 0 }; bool matchingLocal = (np->currCourseNum == gNetworkPlayerLocal->currCourseNum) && (np->currActNum == gNetworkPlayerLocal->currActNum);