Don't get chosen as the tagger if you're a spectator

This commit is contained in:
Jaime Passos 2020-02-23 19:28:16 -03:00
parent 8328c2a9b7
commit 75ff8c1789

View file

@ -3096,7 +3096,7 @@ static void P_InitTagGametype(void)
//Also, you'd never have to loop through all 32 players slots to find anything ever again. //Also, you'd never have to loop through all 32 players slots to find anything ever again.
for (i = 0; i < MAXPLAYERS; i++) for (i = 0; i < MAXPLAYERS; i++)
{ {
if (playeringame[i] && !(players[i].spectator && players[i].quittime)) if (playeringame[i] && !(players[i].spectator || players[i].quittime))
{ {
playersactive[realnumplayers] = i; //stores the player's node in the array. playersactive[realnumplayers] = i; //stores the player's node in the array.
realnumplayers++; realnumplayers++;