From 63e3605d1d05d01fe1ecc6b8f556a152ddc0cad0 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 16 Nov 2018 19:35:21 +0100 Subject: Fix team determination in antistacking code. --- src/game/g_main.c | 4 ++-- 1 file 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 { -- cgit