mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-19 18:41:28 +00:00
Fix g_setdisplayer compile warning
This commit is contained in:
parent
cfaf49ab86
commit
30c5fd9cc3
1 changed files with 1 additions and 1 deletions
|
@ -5694,7 +5694,7 @@ void G_SetDisplayPlayer(player_t *player, INT32 displayNumber, boolean setAllDis
|
|||
else
|
||||
{
|
||||
// the player has to exist or you just get a bleeding display
|
||||
if (playeringame[displayNumber] || players[displayplayer].spectator && player == &players[displayplayer])
|
||||
if (playeringame[displayNumber] || (players[displayplayer].spectator && player == &players[displayplayer]))
|
||||
{
|
||||
// switch the display number locally
|
||||
if (P_IsLocalPlayer(player) && displayplayer == consoleplayer)
|
||||
|
|
Loading…
Reference in a new issue