P_SpawnPlayer: always turn director on for spectators

Fixes director sometimes not switching when a party member
enters the game.
This commit is contained in:
James R 2023-11-16 18:53:30 -08:00
parent b772a66541
commit 0bdbeb9f92

View file

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