mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:53:51 +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
1 changed files with 4 additions and 0 deletions
|
@ -212,6 +212,10 @@ namespace MWMechanics
|
||||||
// nodes are the same
|
// nodes are the same
|
||||||
if(startNode == endNode.first)
|
if(startNode == endNode.first)
|
||||||
{
|
{
|
||||||
|
ESM::Pathgrid::Point temp(mPathgrid->mPoints[startNode]);
|
||||||
|
converter.ToWorld(temp);
|
||||||
|
mPath.push_back(temp);
|
||||||
|
|
||||||
mPath.push_back(endPoint);
|
mPath.push_back(endPoint);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue