hedgewars/uGearsRender.pas
changeset 5507 1040c0946ef8
parent 5472 a724fe2d2ce0
child 5519 c803fca71084
--- a/hedgewars/uGearsRender.pas	Sat Aug 06 07:09:30 2011 +0200
+++ b/hedgewars/uGearsRender.pas	Sun Aug 07 11:18:49 2011 -0400
@@ -877,6 +877,12 @@
     i: Longword;
     startX, endX, startY, endY: LongInt;
 begin
+    if Gear^.TargetX <> NoPointX then
+        if Gear^.AmmoType = amBee then
+            DrawRotatedF(sprTargetBee, Gear^.TargetX + WorldDx, Gear^.TargetY + WorldDy, 0, 0, (RealTicks shr 3) mod 360)
+        else
+            DrawRotatedF(sprTargetP, Gear^.TargetX + WorldDx, Gear^.TargetY + WorldDy, 0, 0, (RealTicks shr 3) mod 360);
+
     case Gear^.Kind of
           gtGrenade: DrawRotated(sprBomb, x, y, 0, Gear^.DirAngle);
       gtSnowball: DrawRotated(sprSnowball, x, y, 0, Gear^.DirAngle);