mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-29 07:21:54 +00:00
- fix math error on ARM architectures
This commit is contained in:
parent
2d551e6557
commit
558fdd2f08
1 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <algorithm>
|
||||
#include "xs_Float.h"
|
||||
|
||||
#define MAXWIDTH 12000
|
||||
#define MAXHEIGHT 5000
|
||||
|
@ -103,12 +104,12 @@ inline double RAD2DEG(double rad)
|
|||
|
||||
inline angle_t RAD2BAM(float rad)
|
||||
{
|
||||
return angle_t(rad * float(0x80000000u / M_PI));
|
||||
return angle_t(xs_RoundToUInt(rad * float(0x80000000u / M_PI)));
|
||||
}
|
||||
|
||||
inline angle_t RAD2BAM(double rad)
|
||||
{
|
||||
return angle_t(rad * (0x80000000u / M_PI));
|
||||
return angle_t(xs_RoundToUInt(rad * (0x80000000u / M_PI)));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue