hedgewars/uGearsRender.pas
changeset 10082 2f7b7992258f
parent 10080 ac51bcb534ef
child 10108 c68cf030eded
--- a/hedgewars/uGearsRender.pas	Tue Jan 28 00:22:49 2014 +0400
+++ b/hedgewars/uGearsRender.pas	Mon Jan 27 23:42:20 2014 -0500
@@ -966,7 +966,7 @@
                 tx := round(max(((-cScreenWidth + 16) / zoom) + SpritesData[sprFinger].Width div 2, min(((cScreenWidth - 16) / zoom) - SpritesData[sprFinger].Width div 2, tx)));
                 ty := round(max(cScreenHeight div 2 - ((cScreenHeight - 16) / (zoom)) + SpritesData[sprFinger].Height div 2, min(cScreenHeight div 2 - ((-cScreenHeight + SpritesData[sprFinger].Height) / (zoom)) - SpritesData[sprFinger].Width div 2 - 96, ty)));
 
-                dAngle := DxDy2Angle(ty - oy, tx - ox) + 90;
+                dAngle := DxDy2Angle(int2hwfloat(ty - oy), int2hwfloat(tx - ox)) + 90;
 
                 DrawSpriteRotatedF(sprFinger, tx, ty, GameTicks div 32 mod 16, 1, dAngle);
                 end;