--- a/hedgewars/uGearsRender.pas Mon Oct 17 13:49:55 2011 -0400
+++ b/hedgewars/uGearsRender.pas Mon Oct 17 14:00:15 2011 -0400
@@ -893,9 +893,18 @@
gtRCPlane: begin
Tint(Gear^.Hedgehog^.Team^.Clan^.Color shl 8 or $FF);
- DrawRotatedTextureF(SpritesData[sprPlane].Texture, 1, 0, 0, x, y, 0, Gear^.Tag, SpritesData[sprPlane].Width, SpritesData[sprPlane].Height, DxDy2Angle(Gear^.dX, Gear^.dY) + 90);
- Tint($FF, $FF, $FF, $FF);
- DrawRotatedTextureF(SpritesData[sprPlane].Texture, 1, 0, 0, x, y, 1, Gear^.Tag, SpritesData[sprPlane].Width, SpritesData[sprPlane].Height, DxDy2Angle(Gear^.dX, Gear^.dY) + 90)
+ if Gear^.Tag = -1 then
+ begin
+ DrawRotatedTextureF(SpritesData[sprPlane].Texture, 1, 0, 0, x, y, 0, -1, SpritesData[sprPlane].Width, SpritesData[sprPlane].Height, DxDy2Angle(Gear^.dX, Gear^.dY) + 90);
+ Tint($FF, $FF, $FF, $FF);
+ DrawRotatedTextureF(SpritesData[sprPlane].Texture, 1, 0, 0, x, y, 1, -1, SpritesData[sprPlane].Width, SpritesData[sprPlane].Height, DxDy2Angle(Gear^.dX, Gear^.dY) + 90)
+ end
+ else
+ begin
+ DrawRotatedTextureF(SpritesData[sprPlane].Texture, 1, 0, 0, x, y, 0, 0, SpritesData[sprPlane].Width, SpritesData[sprPlane].Height, DxDy2Angle(Gear^.dX, Gear^.dY));
+ Tint($FF, $FF, $FF, $FF);
+ DrawRotatedTextureF(SpritesData[sprPlane].Texture, 1, 0, 0, x, y, 1, 0, SpritesData[sprPlane].Width, SpritesData[sprPlane].Height, DxDy2Angle(Gear^.dX, Gear^.dY))
+ end
end;
gtBall: DrawRotatedf(sprBalls, x, y, Gear^.Tag,0, Gear^.DirAngle);