]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
possibly fix the kill indicator leak bug
authorRudolf Polzer <divverent@alientrap.org>
Sun, 12 Dec 2010 13:42:53 +0000 (14:42 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 12 Dec 2010 13:42:53 +0000 (14:42 +0100)
qcsrc/server/cl_client.qc

index d1720a4d4cfc4728c58995d35c044ca07c002adb..2b8dc1881c77a9fca7d4dce51fda57ebbb6d2f8a 100644 (file)
@@ -1244,18 +1244,16 @@ void ClientKill_Now_TeamChange()
 
 void ClientKill_Now()
 {
+       remove(self.killindicator);
+       self.killindicator = world;
+
        if(self.killindicator_teamchange)
                ClientKill_Now_TeamChange();
 
        // in any case:
        Damage(self, self, self, 100000, DEATH_KILL, self.origin, '0 0 0');
 
-       if(self.killindicator)
-       {
-               dprint("Cleaned up after a leaked kill indicator.\n");
-               remove(self.killindicator);
-               self.killindicator = world;
-       }
+       // now I am sure the player IS dead
 }
 void KillIndicator_Think()
 {