diff --git a/src/states_screens/race_gui.cpp b/src/states_screens/race_gui.cpp index 78ca46af8..222c38f80 100644 --- a/src/states_screens/race_gui.cpp +++ b/src/states_screens/race_gui.cpp @@ -432,27 +432,37 @@ void RaceGUI::drawGlobalPlayerIcons(const KartIconDisplayInfo* info) //x,y is the target position int lap = info[kart->getWorldKartId()].lap; - float distance= - world->getDistanceDownTrackForKart(kart_id) - +world->getTrack()->getTrackLength()*lap; - if (previous_distance-distancegetMinorMode()==RaceManager::MINOR_MODE_3_STRIKES) { - //linear translation : form (0,ICON_PLAYER_WIDTH+2) to - // (previous_x-x_base+(ICON_PLAYER_WIDTH+2)/2,0) - x=(int)(x_base+(1-(previous_distance-distance) - /m_dist_show_overlap) - *(previous_x-x_base+(ICON_PLAYER_WIDTH+2)/2)); - y=(int)(previous_y+(previous_distance-distance) - /m_dist_show_overlap*(ICON_PLAYER_WIDTH+2)); + x = x_base; + y = previous_y+ICON_PLAYER_WIDTH+2; } else { - x=x_base; - y=previous_y+ICON_PLAYER_WIDTH+2; - } + float distance = world->getDistanceDownTrackForKart(kart_id) + + world->getTrack()->getTrackLength()*lap; + if (previous_distance-distance