diff options
-rw-r--r-- | engines/wintermute/base/scriptables/script_ext_math.cpp | 2 | ||||
-rw-r--r-- | engines/wintermute/math/math_util.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/base/scriptables/script_ext_math.cpp b/engines/wintermute/base/scriptables/script_ext_math.cpp index 906d807275..f7d0ba20b9 100644 --- a/engines/wintermute/base/scriptables/script_ext_math.cpp +++ b/engines/wintermute/base/scriptables/script_ext_math.cpp @@ -31,7 +31,7 @@ #include "engines/wintermute/base/scriptables/script_value.h"
#include "engines/wintermute/persistent.h"
#include "common/math.h"
-#include <cmath>
+#include <math.h>
namespace Wintermute {
diff --git a/engines/wintermute/math/math_util.cpp b/engines/wintermute/math/math_util.cpp index 4a308a914e..434e0e016b 100644 --- a/engines/wintermute/math/math_util.cpp +++ b/engines/wintermute/math/math_util.cpp @@ -27,14 +27,14 @@ */
#include "engines/wintermute/math/math_util.h"
-#include <cmath>
+#include <math.h>
namespace Wintermute {
//////////////////////////////////////////////////////////////////////////
float MathUtil::round(float val) {
float result = floor(val);
- if (val - result >= 0.5) {
+ if (val - result >= 0.5f) {
result += 1.0;
}
return result;
|