Browse Source

Merge pull request #17594 from ivodopiviz/float-overflow

Changed debug max distance to avoid overflow
Juan Linietsky 7 năm trước cách đây
mục cha
commit
10448063c4
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      servers/physics/collision_object_sw.h

+ 2 - 1
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