]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 1d034a4ec1a480a77a1bf16637a3ec8fba5b379d..821f51573d9c01c6892d4b713e58cbd5db2fb666 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;