hedgewars/uGearsHedgehog.pas
changeset 15085 96244def1cc0
parent 15066 9f6e3be10e96
child 15086 39067b45d0fc
--- a/hedgewars/uGearsHedgehog.pas	Sun May 26 20:51:42 2019 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Sun May 26 23:52:04 2019 +0200
@@ -1296,7 +1296,7 @@
 else if Hedgehog^.CurAmmoType in [amShotgun, amDEagle, amSniperRifle] then
     HHGear^.Message:= HHGear^.Message and gmPrecise;
 
-if ((Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_Utility) <> 0) and isInMultiShoot then
+if (((GameFlags and gfInfAttack) <> 0) or ((Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_Utility) <> 0)) and isInMultiShoot then
     AllInactive:= true
 else if not isInMultiShoot then
     AllInactive:= false;
@@ -1434,7 +1434,7 @@
     exit
     end;
 
-    if not(isInMultiShoot and (Hedgehog^.CurAmmoType in [amShotgun, amDEagle, amSniperRifle])) and (Hedgehog^.Gear <> nil) then
+    if ((not (isInMultiShoot and (Hedgehog^.CurAmmoType in [amShotgun, amDEagle, amSniperRifle]) and ((GameFlags and gfInfAttack) = 0)))) and (Hedgehog^.Gear <> nil) then
         begin
         if GHStepTicks > 0 then
             dec(GHStepTicks);