From b8d2dc903484830422b9befcb504d94e17e0c6c3 Mon Sep 17 00:00:00 2001 From: Alayan-stk-2 Date: Sun, 20 May 2018 00:23:58 +0200 Subject: [PATCH] Fix #3182 (#3260) 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. --- src/items/rubber_ball.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items/rubber_ball.cpp b/src/items/rubber_ball.cpp index ab9ac0428..e7434b654 100644 --- a/src/items/rubber_ball.cpp +++ b/src/items/rubber_ball.cpp @@ -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)