Core/Movement: ported some undermap fixups from a TC pull request

This commit is contained in:
Ovahlord committed 2019-02-23 22:37:17 +01:00
1 parent 326f604c74
commit b0c37b25cc
6 files changed
+11 -16

No files matched your search

+2 -2
View File
@@ -538,14 +538,14 @@ void PathGenerator::BuildPointPath(const float *startPoint, const float *endPoin
/// @todo check the exact cases
TC_LOG_DEBUG("maps", "++ PathGenerator::BuildPointPath FAILED! path sized %d returned\n", pointCount);
BuildShortcut();
_type = PATHFIND_NOPATH;
_type = PathType(_type | PATHFIND_NOPATH);
return;
}
else if (pointCount == _pointPathLimit)
{
TC_LOG_DEBUG("maps", "++ PathGenerator::BuildPointPath FAILED! path sized %d returned, lower than limit set to %d\n", pointCount, _pointPathLimit);
BuildShortcut();
_type = PATHFIND_SHORT;
_type = PathType(_type | PATHFIND_SHORT);
return;
}