Not being able to test sucks :(
authornemo
Mon, 17 Oct 2011 13:49:55 -0400
changeset 6140 863357503fb4
parent 6139 a912b85e3ece
child 6141 2c190f5c037a
Not being able to test sucks :(
hedgewars/uGearsRender.pas
--- a/hedgewars/uGearsRender.pas	Mon Oct 17 13:29:54 2011 -0400
+++ b/hedgewars/uGearsRender.pas	Mon Oct 17 13:49:55 2011 -0400
@@ -893,18 +893,9 @@
 
        gtRCPlane: begin
                   Tint(Gear^.Hedgehog^.Team^.Clan^.Color shl 8 or $FF);
-                  if Gear^.Tag = -1 then
-                     begin
-                     DrawRotatedTextureF(SpritesData[sprPlane].Texture, 0.5, 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, 0.5, 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, 0.5, 0, 0, x, y, 0, 0,  SpritesData[sprPlane].Width, SpritesData[sprPlane].Height, DxDy2Angle(Gear^.dX, Gear^.dY) + 90);
-                     Tint($FF, $FF, $FF, $FF);
-                     DrawRotatedTextureF(SpritesData[sprPlane].Texture, 0.5, 0, 0, x, y, 1, 0,  SpritesData[sprPlane].Width, SpritesData[sprPlane].Height, DxDy2Angle(Gear^.dX, Gear^.dY) + 90);
-                     end
+                  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)
                   end;
        gtBall: DrawRotatedf(sprBalls, x, y, Gear^.Tag,0, Gear^.DirAngle);