mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 18:13:15 +00:00
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:
commit
706c639c70
1 changed files with 5 additions and 5 deletions
10
src/p_mobj.c
10
src/p_mobj.c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue