# HG changeset patch # User unc0rr # Date 1212181721 0 # Node ID a4d5fc8eec7a74b50a1f3eeadc5291b5437231a2 # Parent 4c6ff62c54d2fa26d4631f81d5c8130e56bf63b5 Ammo count == 9 is infinite diff -r 4c6ff62c54d2 -r a4d5fc8eec7a hedgewars/uConsts.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; diff -r 4c6ff62c54d2 -r a4d5fc8eec7a hedgewars/uWorld.pas --- 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