\r
void W_DisplayDigitThink()\r
{\r
+ self.nextthink = time;\r
+\r
// the owner has switched to another weapon, remove the digits\r
if(self.weapon != self.owner.switchweapon)\r
{\r
if(self.team) // weapon load display\r
{\r
if(self.owner.weapon_load[self.owner.switchweapon] <= 0)\r
+ {\r
self.skin = 11; // unavailable digit\r
+ return;\r
+ }\r
else\r
{\r
txt = ftos(floor(self.owner.weapon_load[self.owner.switchweapon]));\r
txt = substring(txt, self.cnt - 1, 1);\r
}\r
\r
- if(!txt || txt == "")\r
+ if((!txt || txt == ""))\r
self.skin = 10; // empty digit\r
else\r
self.skin = stof(txt);\r
-\r
- self.nextthink = time;\r
}\r
\r
void W_DisplayDigitSetup(entity own, float num, float load, float exterior)\r