Some corrections to previous commits
This commit is contained in:
@@ -786,9 +786,12 @@ inline unsigned long long my_double2ulonglong(double d)
|
|||||||
#define SIZE_T_MAX (~((size_t) 0))
|
#define SIZE_T_MAX (~((size_t) 0))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef isfinite
|
#ifdef HAVE_FINITE
|
||||||
|
#define isfinite(x) finite(x)
|
||||||
|
#else
|
||||||
|
#define finite(x) (1.0 / fabs(x) > 0.0)
|
||||||
|
#endif /* HAVE_FINITE */
|
||||||
#define isfinite(x) (1.0 / fabs(x) > 0.0)
|
#define isfinite(x) (1.0 / fabs(x) > 0.0)
|
||||||
#endif /* isfinite */
|
|
||||||
|
|
||||||
#ifndef HAVE_ISNAN
|
#ifndef HAVE_ISNAN
|
||||||
#define isnan(x) ((x) != (x))
|
#define isnan(x) ((x) != (x))
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ void RandomMovementGenerator<Creature>::_setRandomLocation(Creature* creature)
|
|||||||
|
|
||||||
// Xinef: tree climbing, cut as much as we can
|
// Xinef: tree climbing, cut as much as we can
|
||||||
if (zDiff > 2.0f ||
|
if (zDiff > 2.0f ||
|
||||||
(G3D::fuzzyNe(zDiff, 0.0f) && distDiff / zDiff < 2.15f)) // ~25�
|
(G3D::fuzzyNe(zDiff, 0.0f) && distDiff / zDiff < 2.15f)) // ~25˚
|
||||||
{
|
{
|
||||||
_validPointsVector[_currentPoint].erase(randomIter);
|
_validPointsVector[_currentPoint].erase(randomIter);
|
||||||
_preComputedPaths.erase(pathIdx);
|
_preComputedPaths.erase(pathIdx);
|
||||||
|
|||||||
Reference in New Issue
Block a user