unbreak build. didn't test changes
authornemo
Mon, 27 Jan 2014 23:42:20 -0500
changeset 10082 2f7b7992258f
parent 10081 0af84e5cbd4d
child 10083 b20f9481e5cb
unbreak build. didn't test changes
hedgewars/uGearsRender.pas
hedgewars/uLocale.pas
--- 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;
--- a/hedgewars/uLocale.pas	Tue Jan 28 00:22:49 2014 +0400
+++ b/hedgewars/uLocale.pas	Mon Jan 27 23:42:20 2014 -0500
@@ -36,7 +36,7 @@
 {$ENDIF}
 
 implementation
-uses uRandom, uVariables, uDebug, uPhysFSLayer, sysutils;
+uses uRandom, uVariables, uDebug, uPhysFSLayer, sysutils, uUtils;
 
 var trevt: array[TEventId] of array [0..Pred(MAX_EVENT_STRINGS)] of PChar;
     trevt_n: array[TEventId] of integer;