mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-02 02:01:19 +00:00
- fixes
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@276 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
72019537ae
commit
3916faf005
4 changed files with 4 additions and 28 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue