Show survive time in three strikes battle

This commit is contained in:
mrkubax10 2021-06-18 17:36:29 +02:00
parent e22946b7f5
commit c6c76790dc

View File

@ -824,7 +824,12 @@ void RaceResultGUI::displayCTFResults()
ri->m_kart_color = RaceManager::get()->getKartColor(kart->getWorldKartId());
// FTL karts will get a time assigned, they are not shown as eliminated
if (kart->isEliminated() && !(RaceManager::get()->isFollowMode()))
if (kart->isEliminated() && RaceManager::get()->getMinorMode() == RaceManager::MINOR_MODE_3_STRIKES)
{
ri->m_finish_time_string = core::stringw(_("Eliminated after %s",
StringUtils::toWString(StringUtils::timeToString(kart->getFinishTime(), time_precision))));
}
else if (kart->isEliminated() && !(RaceManager::get()->isFollowMode()))
{
ri->m_finish_time_string = core::stringw(_("Eliminated"));
}