Display "0 remaining" if multi-shoot weapon has been used up
authorWuzzy <Wuzzy2@mail.ru>
Fri, 26 Oct 2018 22:52:17 +0200
changeset 14016 52e20f8f538a
parent 14015 996ef4c5d064
child 14017 755f389a1e73
Display "0 remaining" if multi-shoot weapon has been used up
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);