diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-11-16 19:35:21 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-11-16 19:35:21 +0100 |
commit | 63e3605d1d05d01fe1ecc6b8f556a152ddc0cad0 (patch) | |
tree | 1ee8b3c6515b4ae81d0e77e262b38a1d4d2abea5 /src/game | |
parent | 0215f19146ed5c82f71e5d03ed41619975147d2a (diff) |
Fix team determination in antistacking code.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index 2cb292d..e1eb7c3 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -2738,14 +2738,14 @@ static void CheckAntistack(void) if (client->pers.connected != CON_CONNECTED) continue; - if (client->ps.stats[STAT_PTEAM] == PTE_NONE) + if (client->sess.sessionTeam == TEAM_SPECTATOR) continue; score = client->ps.persistant[PERS_SCORE]; if (score < 0) score = 0; - if (client->ps.stats[STAT_PTEAM] == PTE_ALIENS) { + if (client->pers.teamSelection == PTE_ALIENS) { alien_score += score; aliens++; } else { |