1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Swap out -ffast-math for a safe subset of optimization flags (#9682)

It caused more trouble than its worth.
fixes #3943, fixes #5330
This commit is contained in:
sfan5 2020-04-16 10:23:48 +02:00 committed by GitHub
parent e8ac5a31cf
commit 5cbe8437a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -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,