hedgewars/uGearsRender.pas
branchhedgeroid
changeset 5644 4ad07103cfae
parent 5615 104f69e798bb
parent 5612 2638dec1b323
child 5725 e27100a0e2d0
--- a/hedgewars/uGearsRender.pas	Sun Aug 21 22:18:54 2011 +0200
+++ b/hedgewars/uGearsRender.pas	Sun Aug 21 22:20:20 2011 +0200
@@ -885,11 +885,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);