aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sword25/math/vertex.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/sword25/math/vertex.h b/engines/sword25/math/vertex.h
index 574ce39e60..537742b458 100644
--- a/engines/sword25/math/vertex.h
+++ b/engines/sword25/math/vertex.h
@@ -45,10 +45,6 @@
struct lua_State;
-#if defined(MACOSX) || defined(SOLARIS) || defined(__MINGW32__)
-#define sqrtf(x) ((float)sqrt(x))
-#endif
-
namespace Sword25 {
/**
@@ -67,7 +63,7 @@ public:
* @remark If only distances should be compared, sqrDist() should be used, since it is faster.
*/
inline int distance(const Vertex &vertex) const {
- return (int)(sqrtf(static_cast<float>(sqrDist(vertex))) + 0.5);
+ return (int)(sqrt(static_cast<float>(sqrDist(vertex))) + 0.5);
}
static Vertex &luaVertexToVertex(lua_State *L, int StackIndex, Vertex &vertex);