self.nextthink = time;\r
\r
// the owner has switched to another weapon, remove the digits\r
- if(self.weapon != self.owner.switchweapon)\r
+ if(self.weapon != self.owner.weapon)\r
{\r
self.nextthink = 0;\r
remove(self);\r
}\r
else\r
{\r
- txt = ftos(floor(self.owner.weapon_load[self.owner.switchweapon]));\r
+ txt = ftos(floor(self.owner.weapon_load[self.owner.weapon]));\r
txt = substring(txt, self.cnt - 1, 1);\r
}\r
}\r
entity digit, e;\r
digit = spawn();\r
digit.owner = own;\r
- digit.weapon = own.switchweapon;\r
+ digit.weapon = own.weapon;\r
digit.dmg = exterior;\r
digit.team = load;\r
digit.cnt = num;\r