Fix lap time difference being displayed for only a few ticks
This commit is contained in:
parent
091d9bf130
commit
f0d862f472
@ -598,7 +598,8 @@ void LinearWorld::getKartsDisplayInfo(
|
||||
|
||||
// Don't compare times when crossing the start line first
|
||||
if(laps_of_leader>0 &&
|
||||
(getTimeTicks() - getTicksAtLapForKart(kart->getWorldKartId())<5||
|
||||
(getTimeTicks() - getTicksAtLapForKart(kart->getWorldKartId()) <
|
||||
stk_config->time2Ticks(8) ||
|
||||
rank_info.lap != laps_of_leader) &&
|
||||
raceHasLaps())
|
||||
{ // Display for 5 seconds
|
||||
|
Loading…
Reference in New Issue
Block a user