hedgewars/HHHandlers.inc
changeset 5511 13a222b00a9d
parent 5507 1040c0946ef8
child 5513 79dd457193e6
--- a/hedgewars/HHHandlers.inc	Sun Aug 07 11:23:27 2011 -0400
+++ b/hedgewars/HHHandlers.inc	Sun Aug 07 11:52:06 2011 -0400
@@ -376,8 +376,7 @@
         if Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NeedTarget <> 0 then
             begin
             newGear^.TargetX:= TargetPoint.X;
-            newGear^.TargetY:= TargetPoint.Y;
-            TargetPoint.X := NoPointX
+            newGear^.TargetY:= TargetPoint.Y
             end;
 
         // Clear FollowGear if using on a rope/parachute/saucer etc so focus stays with the hog's movement
@@ -422,7 +421,8 @@
            AfterAttack;
            end
         end else Message:= Message and not gmAttack;
-     end
+     end;
+     TargetPoint.X := NoPointX
 end;
 
 procedure AfterAttack;