# HG changeset patch # User Wuzzy # Date 1535839653 -7200 # Node ID 2ac3658a2a139e441b05035c5445635844b0d153 # Parent 8092b54ba19dcdf7c7a751962205fcfa528c11df Fix hog attack code always destroying TargetPoint, even if no attack occurred. Fixes bug 265 diff -r 8092b54ba19d -r 2ac3658a2a13 ChangeLog.txt --- a/ChangeLog.txt Sat Sep 01 23:03:56 2018 +0200 +++ b/ChangeLog.txt Sun Sep 02 00:07:33 2018 +0200 @@ -24,6 +24,7 @@ * Fix invisible projectile timer, attack bar, target on other side of wrap world edge * Fix attack bar drawn over GUI elements * Fix hog being unable to walk after using sniper rifle without firing both shots + * Fix bee weapon becoming unusable when hitting attack key in mid-air * Fix video recorder not working when game audio was disabled * Fix cursor teleporting to center after leaving game with a video recording * Fix teleport tooltip claiming it doesn't end turn in hog placing phase with inf. attack diff -r 8092b54ba19d -r 2ac3658a2a13 hedgewars/uGearsHedgehog.pas --- a/hedgewars/uGearsHedgehog.pas Sat Sep 01 23:03:56 2018 +0200 +++ b/hedgewars/uGearsHedgehog.pas Sun Sep 02 00:07:33 2018 +0200 @@ -596,15 +596,14 @@ if (not CurrentTeam^.ExtDriven) and ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_Power) <> 0) then SendIPC(_S'a'); AfterAttack; - end + end; + TargetPoint.X := NoPointX; end else Message:= Message and (not gmAttack); ScriptCall('onHogAttack', ord(usedAmmoType)); end; // of with Gear^, Gear^.Hedgehog^ do - - TargetPoint.X := NoPointX; end; procedure AfterAttack;