# HG changeset patch # User Wuzzy # Date 1540587137 -7200 # Node ID 52e20f8f538accd7e696c9fb8ddd82a8bde55d22 # Parent 996ef4c5d0640111dcb4eb4553728dc798dfbad9 Display "0 remaining" if multi-shoot weapon has been used up diff -r 996ef4c5d064 -r 52e20f8f538a hedgewars/uGearsHedgehog.pas --- a/hedgewars/uGearsHedgehog.pas Fri Oct 26 22:46:37 2018 +0200 +++ b/hedgewars/uGearsHedgehog.pas Fri Oct 26 22:52:17 2018 +0200 @@ -625,7 +625,7 @@ begin Inc(MultiShootAttacks); - if (Ammoz[a].Ammo.NumPerTurn >= MultiShootAttacks) and ((GameFlags and gfMultiWeapon) = 0) then + if (Ammoz[a].Ammo.NumPerTurn > 0) and ((GameFlags and gfMultiWeapon) = 0) then begin s:= ansistring(inttostr(Ammoz[a].Ammo.NumPerTurn - MultiShootAttacks + 1)); AddCaption(formatA(trmsg[sidRemaining], s), capcolDefault, capgrpAmmostate);