Fix g_setdisplayer compile warning

This commit is contained in:
yellowtd 2017-03-18 19:12:16 -04:00
parent cfaf49ab86
commit 30c5fd9cc3

View file

@ -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)