fix the antispam
authorRudolf Polzer <divverent@alientrap.org>
Sat, 11 Dec 2010 19:52:37 +0000 (20:52 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 11 Dec 2010 19:52:37 +0000 (20:52 +0100)
qcsrc/server/cl_client.qc

index 1d034a4..821f515 100644 (file)
@@ -1306,9 +1306,11 @@ void ClientKill_TeamChange (float targetteam) // 0 = don't change, -1 = auto, -2
        if(g_race_qualifying)
                killtime = 0;
 
-       // flood control it
-       killtime = max(killtime, self.clientkill_nexttime - time);
-       self.clientkill_nexttime = time + killtime + autocvar_g_balance_kill_antispam;
+       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;