mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-25 21:41:44 +00:00
- fix math error on ARM architectures
This commit is contained in:
parent
adc2396f31
commit
6b8bdcc449
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