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
This commit is contained in:
Ivan Vodopiviz 2018-03-17 23:32:07 +01:00
parent 201d2d7226
commit 55f79f2e80
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@
#include "shape_sw.h" #include "shape_sw.h"
#ifdef DEBUG_ENABLED #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) #define MAX_OBJECT_DISTANCE_X2 (MAX_OBJECT_DISTANCE * MAX_OBJECT_DISTANCE)
#endif #endif