Exit loop as soon as kart is found to be on one GraphNode.
This commit is contained in:
@@ -502,6 +502,7 @@ void Graph::findRoadSector(const Vec3& xyz, int *sector,
|
||||
if(q->pointInside(xyz, ignore_vertical))
|
||||
{
|
||||
*sector = indx;
|
||||
return;
|
||||
}
|
||||
} // for i<m_all_nodes.size()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user