Prevented level change popup for players in credits

This commit is contained in:
MysterD 2022-02-05 10:26:38 -08:00
parent 30a58d9e38
commit 38c67ab191
1 changed files with 2 additions and 1 deletions

View File

@ -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);