aboutsummaryrefslogtreecommitdiff
path: root/src/collision.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-04-16 10:23:48 +0200
committerGitHub <noreply@github.com>2020-04-16 10:23:48 +0200
commit5cbe8437a8f7efc9c76baf23de700e96ad96b385 (patch)
treeb10dde1f949b8528e4f634ce54069fa444dc0541 /src/collision.cpp
parente8ac5a31cf12afcfddf8e3ed31e8038930edb06f (diff)
downloadminetest-5cbe8437a8f7efc9c76baf23de700e96ad96b385.tar.gz
minetest-5cbe8437a8f7efc9c76baf23de700e96ad96b385.tar.bz2
minetest-5cbe8437a8f7efc9c76baf23de700e96ad96b385.zip
Swap out -ffast-math for a safe subset of optimization flags (#9682)
It caused more trouble than its worth. fixes #3943, fixes #5330
Diffstat (limited to 'src/collision.cpp')
-rw-r--r--src/collision.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/collision.cpp b/src/collision.cpp
index 6d24bc699..a089f3377 100644
--- a/src/collision.cpp
+++ b/src/collision.cpp
@@ -32,6 +32,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "util/timetaker.h"
#include "profiler.h"
+#ifdef __FAST_MATH__
+#warning "-ffast-math is known to cause bugs in collision code, do not use!"
+#endif
struct NearbyCollisionInfo {
NearbyCollisionInfo(bool is_ul, bool is_obj, int bouncy,