mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +00:00
Pathing bugfix.
When path contains one one point from path grid, point is no longer being discarded.
This commit is contained in:
parent
942a987d52
commit
4d9d8a060d
@ -212,6 +212,10 @@ namespace MWMechanics
|
||||
// nodes are the same
|
||||
if(startNode == endNode.first)
|
||||
{
|
||||
ESM::Pathgrid::Point temp(mPathgrid->mPoints[startNode]);
|
||||
converter.ToWorld(temp);
|
||||
mPath.push_back(temp);
|
||||
|
||||
mPath.push_back(endPoint);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user