From: Rudolf Polzer Date: Sun, 12 Dec 2010 13:42:53 +0000 (+0100) Subject: possibly fix the kill indicator leak bug X-Git-Tag: xonotic-v0.1.0preview~52 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=58dbb346589df99e1ad757f6564b41ec1293d0b4;p=xonotic%2Fxonotic-data.pk3dir.git possibly fix the kill indicator leak bug --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index d1720a4d4..2b8dc1881 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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() {