git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@276 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2008-12-21 17:23:10 +00:00
parent 72019537ae
commit 3916faf005
4 changed files with 4 additions and 28 deletions

View file

@ -239,7 +239,7 @@ angle_t R_PointToAngle2 (fixed_t x1, fixed_t y1, fixed_t x, fixed_t y)
{
#if 1
// The precision of the code below is abysmal so use the CRT atan2 function instead!
return quickertoint((float)atan2f(y-y1, x-x1) * ANGLE_180/M_PI);
return quickertoint((float)atan2f(y-y1, x-x1) * (ANGLE_180/M_PI));
#else
x -= x1;
y -= y1;