Bugfix: length along track was incorrect (only computed length along

current quad).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3745 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2009-07-13 12:24:34 +00:00
parent 5b42fb9f12
commit f51aa12fc0

View File

@@ -103,5 +103,5 @@ void GraphNode::getDistances(const Vec3 &xyz, Vec3 *result)
result->setX( (closest-xyz2d).getLength()); // to the right
else
result->setX(-(closest-xyz2d).getLength()); // to the left
result->setY( (closest-m_lower_center).getLength());
result->setY( m_distance_from_start + (closest-m_lower_center).getLength());
} // getDistances