# HG changeset patch # User nemo # Date 1362340738 18000 # Node ID 796ed875aa956da808a9a3454123643b0e0da576 # Parent 91ad5fe4f1d5522a4e14e61473154221693ac2ed Call act as if attack ended on last shot if switching while in mid multi-shoot. Thanks to AI for discovering this. diff -r 91ad5fe4f1d5 -r 796ed875aa95 hedgewars/uGearsHedgehog.pas --- a/hedgewars/uGearsHedgehog.pas Sun Mar 03 14:39:55 2013 -0500 +++ b/hedgewars/uGearsHedgehog.pas Sun Mar 03 14:58:58 2013 -0500 @@ -65,7 +65,12 @@ begin if (CurAmmoType = amSniperRifle) and ((GameFlags and gfArtillery) = 0) then cArtillery := false; - OnUsedAmmo(HHGear^.Hedgehog^) + if (Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NoRoundEnd) = 0 then + begin + MultiShootAttacks:= Ammoz[CurAmmoType].Ammo.NumPerTurn; + AfterAttack + end + else OnUsedAmmo(HHGear^.Hedgehog^) end; MultiShootAttacks:= 0;