Fix lap time difference being displayed for only a few ticks

This commit is contained in:
Alayan 2018-09-25 23:49:58 +02:00
parent 091d9bf130
commit f0d862f472

View File

@ -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