hedgewars/uGears.pas
changeset 1696 bb1e305320a1
parent 1689 3d0eee01f734
child 1717 f4cf7e36ae3e
--- a/hedgewars/uGears.pas	Sun Jan 18 12:46:24 2009 +0000
+++ b/hedgewars/uGears.pas	Sun Jan 18 13:01:49 2009 +0000
@@ -1062,7 +1062,7 @@
 	case Gear^.Kind of
        gtAmmo_Bomb: DrawRotated(sprBomb, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle);
 
-       gtRCPlane: if (PHedgehog(Gear^.Hedgehog)^.Gear^.dX.isNegative) then
+       gtRCPlane: if (Gear^.Tag = -1) then
                      DrawRotated(sprPlane, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, -1,  DxDy2Angle(Gear^.dX, Gear^.dY) + 90)
                   else
                      DrawRotated(sprPlane, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy,0,DxDy2Angle(Gear^.dY, Gear^.dX));