This one gets called a lot when drawing rotated sprites
authornemo
Fri, 17 Aug 2012 10:39:23 -0400
changeset 7548 c7a21fc530de
parent 7547 6e9c5feb88eb
child 7549 f6145d12bb17
child 7550 3c4b4cb40f40
This one gets called a lot when drawing rotated sprites
hedgewars/uUtils.pas
--- a/hedgewars/uUtils.pas	Fri Aug 17 10:28:42 2012 -0400
+++ b/hedgewars/uUtils.pas	Fri Aug 17 10:39:23 2012 -0400
@@ -43,7 +43,7 @@
 function  StrToInt(s: shortstring): LongInt;
 function  FloatToStr(n: hwFloat): shortstring;
 
-function  DxDy2Angle(const _dY, _dX: hwFloat): GLfloat;
+function  DxDy2Angle(const _dY, _dX: hwFloat): GLfloat; inline;
 function  DxDy2Angle32(const _dY, _dX: hwFloat): LongInt;
 function  DxDy2AttackAngle(const _dY, _dX: hwFloat): LongInt;
 function  DxDy2AttackAnglef(const _dY, _dX: extended): LongInt;
@@ -182,7 +182,7 @@
 end;
 
 
-function DxDy2Angle(const _dY, _dX: hwFloat): GLfloat;
+function DxDy2Angle(const _dY, _dX: hwFloat): GLfloat; inline;
 var dY, dX: Extended;
 begin
 dY:= hwFloat2Float(_dY);