From 44a67e60e8320867aa586e50fc18f1444e760d60 Mon Sep 17 00:00:00 2001 From: GreaseMonkey Date: Fri, 9 Feb 2024 09:10:33 +1300 Subject: [PATCH] net: Use `LOCALPLAYERCOUNT()` for UI size determination --- src/game/endscreen.c | 12 ++++++------ src/game/mplayer/ingame.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/game/endscreen.c b/src/game/endscreen.c index 8f0691d66..d9aa5ae84 100644 --- a/src/game/endscreen.c +++ b/src/game/endscreen.c @@ -1702,7 +1702,7 @@ void endscreenPushCoop(void) // Failed or aborted if (optionsGetScreenSplit() == SCREENSPLIT_VERTICAL #ifndef PLATFORM_N64 - || PLAYERCOUNT() >= 3 + || LOCALPLAYERCOUNT() >= 3 #endif ) { menuPushRootDialog(&g_2PMissionEndscreenFailedVMenuDialog, MENUROOT_MPENDSCREEN); @@ -1713,7 +1713,7 @@ void endscreenPushCoop(void) // Completed if (optionsGetScreenSplit() == SCREENSPLIT_VERTICAL #ifndef PLATFORM_N64 - || PLAYERCOUNT() >= 3 + || LOCALPLAYERCOUNT() >= 3 #endif ) { menuPushRootDialog(&g_2PMissionEndscreenCompletedVMenuDialog, MENUROOT_MPENDSCREEN); @@ -1803,7 +1803,7 @@ void endscreenPushAnti(void) // Bond - failed or aborted if (optionsGetScreenSplit() == SCREENSPLIT_VERTICAL #ifndef PLATFORM_N64 - || PLAYERCOUNT() >= 3 + || LOCALPLAYERCOUNT() >= 3 #endif ) { menuPushRootDialog(&g_2PMissionEndscreenFailedVMenuDialog, MENUROOT_MPENDSCREEN); @@ -1814,7 +1814,7 @@ void endscreenPushAnti(void) // Bond - completed if (optionsGetScreenSplit() == SCREENSPLIT_VERTICAL #ifndef PLATFORM_N64 - || PLAYERCOUNT() >= 3 + || LOCALPLAYERCOUNT() >= 3 #endif ) { menuPushRootDialog(&g_2PMissionEndscreenCompletedVMenuDialog, MENUROOT_MPENDSCREEN); @@ -1834,7 +1834,7 @@ void endscreenPushAnti(void) // Anti - completed if (optionsGetScreenSplit() == SCREENSPLIT_VERTICAL #ifndef PLATFORM_N64 - || PLAYERCOUNT() >= 3 + || LOCALPLAYERCOUNT() >= 3 #endif ) { menuPushRootDialog(&g_2PMissionEndscreenCompletedVMenuDialog, MENUROOT_MPENDSCREEN); @@ -1845,7 +1845,7 @@ void endscreenPushAnti(void) // Anti - failed or aborted if (optionsGetScreenSplit() == SCREENSPLIT_VERTICAL #ifndef PLATFORM_N64 - || PLAYERCOUNT() >= 3 + || LOCALPLAYERCOUNT() >= 3 #endif ) { menuPushRootDialog(&g_2PMissionEndscreenFailedVMenuDialog, MENUROOT_MPENDSCREEN); diff --git a/src/game/mplayer/ingame.c b/src/game/mplayer/ingame.c index 5d157e753..4286739f0 100644 --- a/src/game/mplayer/ingame.c +++ b/src/game/mplayer/ingame.c @@ -802,7 +802,7 @@ void mpPushPauseDialog(void) } else { if (optionsGetScreenSplit() == SCREENSPLIT_VERTICAL #ifndef PLATFORM_N64 - || PLAYERCOUNT() >= 3 + || LOCALPLAYERCOUNT() >= 3 #endif ) { menuPushRootDialog(&g_2PMissionPauseVMenuDialog, MENUROOT_MPPAUSE);