hedgewars/HHHandlers.inc
changeset 5507 1040c0946ef8
parent 5439 25d3784dc0f6
child 5511 13a222b00a9d
--- a/hedgewars/HHHandlers.inc	Sat Aug 06 07:09:30 2011 +0200
+++ b/hedgewars/HHHandlers.inc	Sun Aug 07 11:18:49 2011 -0400
@@ -373,6 +373,12 @@
                   amResurrector, amStructure,
                        amTardis: CurAmmoGear:= newGear;
                   end;
+        if Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NeedTarget <> 0 then
+            begin
+            newGear^.TargetX:= TargetPoint.X;
+            newGear^.TargetY:= TargetPoint.Y;
+            TargetPoint.X := NoPointX
+            end;
 
         // Clear FollowGear if using on a rope/parachute/saucer etc so focus stays with the hog's movement
         if altUse then FollowGear:= nil;