Core/Objects: do not block collision detection for flying units

This commit is contained in:
Ovahlord
2020-05-02 19:01:15 +02:00
parent 8eccdaefc9
commit c3fd5d2037

View File

@@ -2555,7 +2555,7 @@ void WorldObject::MovePositionToFirstCollision(Position &pos, float dist, float
path.CalculatePath(destx, desty, destz, false, true);
// We have a invalid path result. Skip further processing.
if (path.GetPathType() & ~(PATHFIND_NORMAL | PATHFIND_SHORTCUT | PATHFIND_INCOMPLETE | PATHFIND_FARFROMPOLY_END))
if (path.GetPathType() & ~(PATHFIND_NORMAL | PATHFIND_SHORTCUT | PATHFIND_INCOMPLETE | PATHFIND_FARFROMPOLY_END | PATHFIND_NOT_USING_PATH))
return;
G3D::Vector3 result = path.GetPath().back();