never doing any graphics stuff when I can't test, again :(
authornemo
Mon, 17 Oct 2011 14:05:34 -0400
changeset 6142 ee0bcee5bf86
parent 6141 2c190f5c037a
child 6143 898e3479a4e3
never doing any graphics stuff when I can't test, again :(
hedgewars/uGearsRender.pas
--- a/hedgewars/uGearsRender.pas	Mon Oct 17 14:00:15 2011 -0400
+++ b/hedgewars/uGearsRender.pas	Mon Oct 17 14:05:34 2011 -0400
@@ -901,9 +901,9 @@
                       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));
+                      DrawRotatedTextureF(SpritesData[sprPlane].Texture, 1, 0, 0, x, y, 0, 0,  SpritesData[sprPlane].Width, SpritesData[sprPlane].Height, DxDy2Angle(Gear^.dY, Gear^.dX));
                       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))
+                      DrawRotatedTextureF(SpritesData[sprPlane].Texture, 1, 0, 0, x, y, 1, 0,  SpritesData[sprPlane].Width, SpritesData[sprPlane].Height, DxDy2Angle(Gear^.dY, Gear^.dX))
                       end
                   end;
        gtBall: DrawRotatedf(sprBalls, x, y, Gear^.Tag,0, Gear^.DirAngle);