From 0bdbeb9f92c2756979b0a381de66a85231c21d16 Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 16 Nov 2023 18:53:30 -0800 Subject: [PATCH] P_SpawnPlayer: always turn director on for spectators Fixes director sometimes not switching when a party member enters the game. --- src/p_mobj.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 35eb6a2e5..6ebe3a720 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -12639,13 +12639,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