diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-11-16 19:35:21 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2019-02-10 14:47:47 +0100 |
commit | 24efcdc6cb6a722c4bc1ce28c71833771adc46b9 (patch) | |
tree | 5c78a5eb876f428e9b76bb2de35860aa6d53b826 /src/game | |
parent | 45f299c1bf3912e791046e051b6d824f065eb299 (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 { |