aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/math/math_util.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-08-31 17:28:37 +0200
committerEinar Johan Trøan Sømåen2012-08-31 17:28:37 +0200
commitb01f09e82fd254823a839a8d4f622dc4d35bde6a (patch)
treed7f5887067004e9909417540e5607b23b845b907 /engines/wintermute/math/math_util.cpp
parentd5f92497e6f15fab1c7f09bdf9a3f9c86982d35f (diff)
downloadscummvm-rg350-b01f09e82fd254823a839a8d4f622dc4d35bde6a.tar.gz
scummvm-rg350-b01f09e82fd254823a839a8d4f622dc4d35bde6a.tar.bz2
scummvm-rg350-b01f09e82fd254823a839a8d4f622dc4d35bde6a.zip
WINTERMUTE: Use <math.h> instead of <cmath>
Diffstat (limited to 'engines/wintermute/math/math_util.cpp')
-rw-r--r--engines/wintermute/math/math_util.cpp4
1 files changed, 2 insertions, 2 deletions
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;