From da2150ee7a2e993077096ce92fdadd7aaf16ca2c Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 1 Feb 2024 02:58:54 -0800 Subject: [PATCH] Party::rebuild_displayplayers: let displayplayers be reconfigured outside of level context - This lets party changes take effect during GS_INTERMISSION or GS_VOTING - displayplayers must always be updated, in order for splitscreen viewports to appear when the level starts - Only G_FixCamera is not called, because it may rely on player_t.mo and I'm scared of that --- src/g_party.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/g_party.cpp b/src/g_party.cpp index 0caad76b7..bb55c36d8 100644 --- a/src/g_party.cpp +++ b/src/g_party.cpp @@ -128,16 +128,15 @@ public: return; } - // Rendering stuff is not valid outside of levels. - if (!G_GamestateUsesLevel()) - { - return; - } - for (std::size_t i = 0; i < size(); ++i) { displayplayers[i] = at(i); - G_FixCamera(1 + i); + + // Camera is not valid outside of levels. + if (G_GamestateUsesLevel()) + { + G_FixCamera(1 + i); + } } r_splitscreen = size() - 1;