mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
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:
parent
6f27714011
commit
da2150ee7a
1 changed files with 6 additions and 7 deletions
|
|
@ -128,16 +128,15 @@ public:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rendering stuff is not valid outside of levels.
|
|
||||||
if (!G_GamestateUsesLevel())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (std::size_t i = 0; i < size(); ++i)
|
for (std::size_t i = 0; i < size(); ++i)
|
||||||
{
|
{
|
||||||
displayplayers[i] = at(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;
|
r_splitscreen = size() - 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue