hedgewars/uGearsHedgehog.pas
changeset 13738 2ac3658a2a13
parent 13674 3f6fae745f84
child 13749 52959f686082
--- 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;