From: MirceaKitsune Date: Sat, 17 Mar 2012 10:01:56 +0000 (+0200) Subject: Hopefully fix display digits showing on gibbed dead players X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0ed8d44ffe9efa25238b87fba9e7c614023e2418;p=voretournament%2Fvoretournament.git Hopefully fix display digits showing on gibbed dead players --- diff --git a/data/qcsrc/server/cl_weapons.qc b/data/qcsrc/server/cl_weapons.qc index 2265e635..01ce3ea7 100644 --- a/data/qcsrc/server/cl_weapons.qc +++ b/data/qcsrc/server/cl_weapons.qc @@ -320,7 +320,7 @@ void W_DisplayDigitThink() w_ammo = self.owner.(self.owner.current_ammo); // the owner has switched to another weapon, remove the digits - if(!self.owner.display_setup || !self.owner.weapon) + if(!self.owner.display_setup || !self.owner.weapon || self.owner.deadflag != DEAD_NO) { self.nextthink = 0; remove(self); @@ -455,7 +455,7 @@ void W_WeaponFrame() up = v_up; // setup weapon display digits - if(self.weapon != self.switchweapon || self.classname != "player" || self.deadflag != DEAD_NO) + if(self.weapon != self.switchweapon || self.classname != "player") self.display_setup = FALSE; else if(!self.display_setup) { diff --git a/docs/TODO.txt b/docs/TODO.txt index d0b8cf5c..a398ed14 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -146,6 +146,4 @@ - 0.7: Smaller default zoom for minimap -- 0.7 | 0.8 BUG: Display digits still appear on the 3rd person weapon when a player dies and becomes gibbed - - 0.7: Bots should digest items even at 0 skill \ No newline at end of file