Make EndController to use length()

This commit is contained in:
Benau
2016-09-15 12:40:58 +08:00
parent 8c830bdabf
commit 483dca3754

View File

@@ -278,7 +278,7 @@ void EndController::findNonCrashingPoint(Vec3 *result)
direction = QuadGraph::get()->getNode(target_sector)->getCenter()
- m_kart->getXYZ();
float len=direction.length_2d();
float len=direction.length();
steps = int( len / m_kart_length );
if( steps < 3 ) steps = 3;