hedgewars/uGearsRender.pas
changeset 10547 cc439790ebae
parent 10528 17eb01474f42
child 10560 9f09196d92a6
--- a/hedgewars/uGearsRender.pas	Mon Nov 24 04:16:28 2014 +0100
+++ b/hedgewars/uGearsRender.pas	Mon Nov 24 20:44:45 2014 +0100
@@ -1205,7 +1205,7 @@
          gtAirBomb: DrawSpriteRotated(sprAirBomb, x, y, 0, DxDy2Angle(Gear^.dY, Gear^.dX));
         gtTeleport: begin
                     HHGear:= Gear^.Hedgehog^.Gear;
-                    if not Gear^.Hedgehog^.Unplaced then
+                    if ((Gear^.State and gstAnimation) <> 0) then
                         DrawSpriteRotatedF(sprTeleport, x + 1, y - 3, Gear^.Pos, hwSign(Gear^.dX), 0);
                     DrawSpriteRotatedF(sprTeleport, hwRound(HHGear^.X) + 1 + WorldDx, hwRound(HHGear^.Y) - 3 + WorldDy, 11 - Gear^.Pos, hwSign(HHGear^.dX), 0);
                     end;