]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Use floor() for ammo on weapon screens. Fixes ammo showing extra zeros when not a...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 17 Nov 2011 19:55:48 +0000 (21:55 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 17 Nov 2011 19:55:48 +0000 (21:55 +0200)
data/qcsrc/server/cl_weaponsystem.qc

index 3ba9de44e1458cda731d0ca0223e2249f75a4094..66edbb26370967edc70dfefe55024ce552fcc064 100644 (file)
@@ -1625,13 +1625,13 @@ void W_DisplayDigitThink()
                        self.skin = 11; // unavailable digit\r
                else\r
                {\r
-                       txt = ftos(self.owner.weapon_load[self.owner.switchweapon]);\r
+                       txt = ftos(floor(self.owner.weapon_load[self.owner.switchweapon]));\r
                        txt = substring(txt, self.cnt - 1, 1);\r
                }\r
        }\r
        else // ammo display\r
        {\r
-               txt = ftos(self.owner.(self.owner.current_ammo));\r
+               txt = ftos(floor(self.owner.(self.owner.current_ammo)));\r
                txt = substring(txt, self.cnt - 1, 1);\r
        }\r
 \r