Merge branch 'fix-splitscreen-director-toggle' into 'master'

Fix director not switching on when a party member enters

See merge request KartKrew/Kart!1639
This commit is contained in:
Gunla 2023-11-18 00:15:32 +00:00
commit 706c639c70

View file

@ -12651,13 +12651,13 @@ void P_SpawnPlayer(INT32 playernum)
}
}
boolean director = p->spectator && pcount > 0;
if (G_IsPartyLocal(playernum))
{
// Spectating when there is literally any other
// player in the level enables director cam.
K_ToggleDirector(G_PartyPosition(playernum), director);
// Spectating always enables director cam. If there
// is no one to view, this will do nothing. If
// someone enters the game later, it will
// automatically switch to that player.
K_ToggleDirector(G_PartyPosition(playernum), p->spectator);
// Spectators can switch to freecam. This should be
// disabled when they enter the race, or when the level