Fix race GUI glitch kart icons to line horizontally at the start of a race
This commit is contained in:
parent
bb88ffc460
commit
ad7555d8ea
@ -772,9 +772,10 @@ void RaceGUIBase::drawGlobalPlayerIcons(int bottom_margin)
|
|||||||
|
|
||||||
float distance = linear_world->getDistanceDownTrackForKart(kart_id, true)
|
float distance = linear_world->getDistanceDownTrackForKart(kart_id, true)
|
||||||
+ Track::getCurrentTrack()->getTrackLength()*lap;
|
+ Track::getCurrentTrack()->getTrackLength()*lap;
|
||||||
|
|
||||||
if ((position>1) &&
|
if ((position>1) &&
|
||||||
(previous_distance-distance<m_dist_show_overlap) &&
|
(previous_distance-distance<m_dist_show_overlap) &&
|
||||||
(!kart->hasFinishedRace()) )
|
(!kart->hasFinishedRace()) && lap >= 0 )
|
||||||
{
|
{
|
||||||
//linear translation : form (0,ICON_PLAYER_WIDTH+2) to
|
//linear translation : form (0,ICON_PLAYER_WIDTH+2) to
|
||||||
// (previous_x-x_base+(ICON_PLAYER_WIDTH+2)/2,0)
|
// (previous_x-x_base+(ICON_PLAYER_WIDTH+2)/2,0)
|
||||||
|
Loading…
Reference in New Issue
Block a user