Exit loop as soon as kart is found to be on one GraphNode.

This commit is contained in:
hiker
2016-09-29 15:11:08 +10:00
parent fb7b42a625
commit 0b76a576a3

View File

@@ -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()