mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- fixed the R_PointToAngle fix from r1985.
SVN r1989 (trunk)
This commit is contained in:
parent
2b5f765982
commit
eca9b4981b
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ angle_t R_PointToAngle2 (fixed_t x1, fixed_t y1, fixed_t x, fixed_t y)
|
|||
// we have to use the slower but more precise floating point atan2 function here.
|
||||
// (use quickertoint to speed this up because the CRT's conversion is rather slow and
|
||||
// this is used in time critical code.)
|
||||
return quickertoint((float)(atan2f(float(y-viewy), float(x-viewx)) * (ANGLE_180/M_PI)));
|
||||
return quickertoint((float)(atan2f(float(y), float(x)) * (ANGLE_180/M_PI)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue