mirror of
https://github.com/godotengine/godot.git
synced 2025-10-15 02:49:24 +00:00
Changed debug max distance to avoid overflow
Changed it to roughly sqrt(FLT_MAX), it's a little less to account for float inaccuracies.
Fixes #1835
(cherry picked from commit 55f79f2e80
)
This commit is contained in:

committed by
Hein-Pieter van Braam

parent
29a02a78df
commit
52c710f25a
@@ -37,7 +37,8 @@
|
||||
#include "shape_sw.h"
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
#define MAX_OBJECT_DISTANCE 10000000.0
|
||||
#define MAX_OBJECT_DISTANCE 3.1622776601683791e+18
|
||||
|
||||
#define MAX_OBJECT_DISTANCE_X2 (MAX_OBJECT_DISTANCE * MAX_OBJECT_DISTANCE)
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user