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
This commit is contained in:
James R 2024-02-01 02:58:54 -08:00
parent 6f27714011
commit da2150ee7a

View file

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