forked from mirrors/0ad
Fix more pathfinding issues.
Change the way the long-range pathfinder rasterisation works slightly so that we have a better compatibility with the short-range pathfinder. Should fix the "stuck units" issues, though I am not sure so I am not marking them as fixed so far. Refs #3471, #3505, and possibly #3292. Caveat: I am now using clearance of 0.8 for "default" class, which might have side-effects: please report anything weird. Also fix leftover style issues. This was SVN commit r17161.
This commit is contained in:
@@ -1042,7 +1042,9 @@ void CCmpUnitMotion::PlanNextStep(const CFixedVector2D& pos)
|
||||
return;
|
||||
|
||||
CmpPtr<ICmpPathfinder> cmpPathfinder(GetSystemEntity());
|
||||
|
||||
if (!cmpPathfinder)
|
||||
return;
|
||||
|
||||
const Waypoint& nextPoint = m_LongPath.m_Waypoints.back();
|
||||
|
||||
// The next step was obstructed the last time we checked; also check that
|
||||
|
||||
Reference in New Issue
Block a user