mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
b772a66541
commit
0bdbeb9f92
1 changed files with 5 additions and 5 deletions
10
src/p_mobj.c
10
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue