diff --git a/source/core/mathutil.cpp b/source/core/mathutil.cpp index df58c3daf..ad92b79a2 100644 --- a/source/core/mathutil.cpp +++ b/source/core/mathutil.cpp @@ -68,7 +68,7 @@ int FindDistance3D(int x, int y, int z) { x= abs(x); /* absolute values */ y= abs(y); - z= abs(z); + z= abs(z >> 4); if (xx - s2->x; vy = s1->y - s2->y; vz = s1->z - s2->z; - return(FindDistance3D(vx, vy, vz >> 4)); + return(FindDistance3D(vx, vy, vz)); } inline bool isIn(int value, int first)