Core/Movement: ported some undermap fixups from a TC pull request
This commit is contained in:
1 parent
326f604c74
commit
b0c37b25cc
6 files changed
+11
-16
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user