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:
parent
fdc299e073
commit
b8d2dc9034
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user