Core/PathGenerator: Temporarily revert 29bf280e34

Temporarily revert 29bf280e34 since our recast implementation always expects a path to have different polygons.
A proper fix will be implemented later on, splitting a path with 1 single polygons in smaller steps in a similar way of how FindSmoothPath() works
This commit is contained in:
jackpoz
2020-02-20 21:31:26 +01:00
committed by Ovahlord
parent cad41332ba
commit e4dba606cb

View File

@@ -255,8 +255,11 @@ void PathGenerator::BuildPolyPath(G3D::Vector3 const& startPos, G3D::Vector3 con
BuildShortcut();
_pathPolyRefs[0] = startPoly;
_pathPolyRefs[1] = endPoly;
_polyLength = 2;
_polyLength = 1;
_type = farFromPoly ? PATHFIND_INCOMPLETE : PATHFIND_NORMAL;
TC_LOG_DEBUG("maps.mmaps", "++ BuildPolyPath :: path type %d", _type);
return;
}
// look for startPoly/endPoly in current path