Checklines validation is for karts only, so having it true for the basket ball made the ball_distance always equal to zero. Setting it to false make the basket ball work again.
This commit is contained in:
Alayan-stk-2 2018-05-20 00:23:58 +02:00 committed by auriamg
parent fdc299e073
commit b8d2dc9034

View File

@ -644,7 +644,7 @@ void RubberBall::updateDistanceToTarget()
float target_distance =
world->getDistanceDownTrackForKart(m_target->getWorldKartId(), true);
float ball_distance = getDistanceFromStart(true);
float ball_distance = getDistanceFromStart(/* account for checklines */ false);
m_distance_to_target = target_distance - ball_distance;
if(m_distance_to_target < 0)