From b76feab34c3808e0d7c65f8a6d008306b774263e Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 11 Dec 2010 21:02:08 +0100 Subject: [PATCH] move the antispam to a better place :P --- qcsrc/server/cl_client.qc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 821f51573..d1720a4d4 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1306,16 +1306,16 @@ void ClientKill_TeamChange (float targetteam) // 0 = don't change, -1 = auto, -2 if(g_race_qualifying) killtime = 0; - if(self.modelindex && self.deadflag == DEAD_NO) - { - killtime = max(killtime, self.clientkill_nexttime - time); - self.clientkill_nexttime = time + killtime + autocvar_g_balance_kill_antispam; - } - self.killindicator_teamchange = targetteam; if(!self.killindicator) { + if(self.modelindex && self.deadflag == DEAD_NO) + { + killtime = max(killtime, self.clientkill_nexttime - time); + self.clientkill_nexttime = time + killtime + autocvar_g_balance_kill_antispam; + } + if(killtime <= 0 || !self.modelindex || self.deadflag != DEAD_NO) { ClientKill_Now(); -- 2.39.2