Core/MMaps: Simplify d182e5f7e73e614185f4470429467befd6e03981 and handle PATHFIND_INCOMPLETE in ChaseMovementGenerator as "cannot reach the target"
# Conflicts: # src/server/game/Movement/MovementGenerators/ChaseMovementGenerator.cpp
This commit is contained in:
1 parent
6552a00208
commit
5cb3e69e1e
1 file changed
-7
@@ -471,13 +471,6 @@ void PathGenerator::BuildPolyPath(G3D::Vector3 const& startPos, G3D::Vector3 con
|
||||
else
|
||||
_type = PATHFIND_INCOMPLETE;
|
||||
|
||||
if (_type & PATHFIND_INCOMPLETE && _sourceUnit->CanFly())
|
||||
{
|
||||
BuildShortcut();
|
||||
_type = PathType(PATHFIND_NORMAL | PATHFIND_NOT_USING_PATH);
|
||||
return;
|
||||
}
|
||||
|
||||
// generate the point-path out of our up-to-date poly-path
|
||||
BuildPointPath(startPoint, endPoint);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user