Ammo count == 9 is infinite
authorunc0rr
Fri, 30 May 2008 21:08:41 +0000
changeset 965 a4d5fc8eec7a
parent 964 4c6ff62c54d2
child 966 664ae90b5b0c
Ammo count == 9 is infinite
hedgewars/uConsts.pas
hedgewars/uWorld.pas
--- a/hedgewars/uConsts.pas	Thu May 29 20:57:24 2008 +0000
+++ b/hedgewars/uConsts.pas	Fri May 30 21:08:41 2008 +0000
@@ -201,7 +201,7 @@
       ammoprop_AltAttack    = $00000200;
       ammoprop_AltUse       = $00000400;
 
-      AMMO_INFINITE = High(LongWord);
+      AMMO_INFINITE = 9;
 
       EXPLAllDamageInRadius = $00000001;
       EXPLAutoSound         = $00000002;
--- a/hedgewars/uWorld.pas	Thu May 29 20:57:24 2008 +0000
+++ b/hedgewars/uWorld.pas	Fri May 30 21:08:41 2008 +0000
@@ -138,7 +138,7 @@
         if Ammo^[Slot, Pos].Count > 0 then
            begin
            DrawTexture(AMxCurr + 10, cScreenHeight - 68, Ammoz[Ammo^[Slot, Pos].AmmoType].NameTex);
-           if Ammo^[Slot, Pos].Count < 10 then
+           if Ammo^[Slot, Pos].Count < AMMO_INFINITE then
               DrawTexture(AMxCurr + 175, cScreenHeight - 68, CountTexz[Ammo^[Slot, Pos].Count]);
            if bSelected then
               begin