hedgewars/uGearsRender.pas
changeset 5612 2638dec1b323
parent 5561 dfbe55237c64
child 5644 4ad07103cfae
child 5706 4454aa0523e7
--- a/hedgewars/uGearsRender.pas	Sat Aug 20 16:31:20 2011 -0400
+++ b/hedgewars/uGearsRender.pas	Sat Aug 20 16:43:57 2011 -0400
@@ -883,11 +883,11 @@
     i: Longword;
     startX, endX, startY, endY: LongInt;
 begin
-    if Gear^.TargetX <> NoPointX then
+    if Gear^.Target.X <> NoPointX then
         if Gear^.AmmoType = amBee then
-            DrawRotatedF(sprTargetBee, Gear^.TargetX + WorldDx, Gear^.TargetY + WorldDy, 0, 0, (RealTicks shr 3) mod 360)
+            DrawRotatedF(sprTargetBee, Gear^.Target.X + WorldDx, Gear^.Target.Y + WorldDy, 0, 0, (RealTicks shr 3) mod 360)
         else
-            DrawRotatedF(sprTargetP, Gear^.TargetX + WorldDx, Gear^.TargetY + WorldDy, 0, 0, (RealTicks shr 3) mod 360);
+            DrawRotatedF(sprTargetP, Gear^.Target.X + WorldDx, Gear^.Target.Y + WorldDy, 0, 0, (RealTicks shr 3) mod 360);
 
     case Gear^.Kind of
           gtGrenade: DrawRotated(sprBomb, x, y, 0, Gear^.DirAngle);