# HG changeset patch # User Wuzzy # Date 1558449154 -7200 # Node ID 9a7a5833fad210bfebd1ee655d90067808465fc1 # Parent 62e3853fa2ed1f96c27ed49bb9bd4e9ecbb00d53 Fix un-selecting weapon while in multishoot allowing another attack diff -r 62e3853fa2ed -r 9a7a5833fad2 hedgewars/uGearsHedgehog.pas --- a/hedgewars/uGearsHedgehog.pas Tue May 21 15:15:17 2019 +0200 +++ b/hedgewars/uGearsHedgehog.pas Tue May 21 16:32:34 2019 +0200 @@ -147,14 +147,6 @@ HHGear^.Message:= HHGear^.Message and (not gmWeapon); -// Special case: amNothing unselects weapon -if weap = amNothing then - begin - HHGear^.Hedgehog^.CurAmmoType:= amNothing; - ApplyAmmoChanges(HHGear^.Hedgehog^); - exit - end; - if Hedgehog^.Team^.Clan^.TurnNumber <= Ammoz[weap].SkipTurns then exit; // weapon is not activated yet diff -r 62e3853fa2ed -r 9a7a5833fad2 hedgewars/uVariables.pas --- a/hedgewars/uVariables.pas Tue May 21 15:15:17 2019 +0200 +++ b/hedgewars/uVariables.pas Tue May 21 16:32:34 2019 +0200 @@ -905,7 +905,7 @@ minAngle: 0; maxAngle: 0; isDamaging: false; - SkipTurns: 9999; + SkipTurns: 0; PosCount: 0; PosSprite: sprWater; ejectX: 0;