diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-04-08 09:14:29 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 09:14:29 -0300 |
commit | 10448063c401637cb5f4ed05d46c05edf9e51ea4 (patch) | |
tree | e584e001bb715450ff5d492244535e585d286535 | |
parent | 47ffe107e6f0aa218f1ebbbef34043185dd4fd89 (diff) | |
parent | 55f79f2e809f27e3e3d24e8f06cb86a9e28cffb0 (diff) |
Merge pull request #17594 from ivodopiviz/float-overflow
Changed debug max distance to avoid overflow
-rw-r--r-- | servers/physics/collision_object_sw.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/physics/collision_object_sw.h b/servers/physics/collision_object_sw.h index f5d32e56a0..dee28bb6df 100644 --- a/servers/physics/collision_object_sw.h +++ b/servers/physics/collision_object_sw.h @@ -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 |