Merge remote branch 'origin/master' into fruitiex/ctsfix
authorFruitieX <fruitiex@gmail.com>
Sat, 11 Dec 2010 20:03:15 +0000 (22:03 +0200)
committerFruitieX <fruitiex@gmail.com>
Sat, 11 Dec 2010 20:03:15 +0000 (22:03 +0200)
1  2 
qcsrc/server/cl_client.qc

@@@ -1308,19 -1303,19 +1308,19 @@@ void ClientKill_TeamChange (float targe
        entity e;
        killtime = autocvar_g_balance_kill_delay;
  
 -      if(g_race_qualifying)
 +      if(g_race_qualifying || g_cts)
                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.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();