Show kart name next to icon after finishing a race

This commit is contained in:
Benau 2018-11-16 23:34:05 +08:00
parent 092cd7f3bf
commit eb6b930b6a

View File

@ -627,6 +627,10 @@ void LinearWorld::getKartsDisplayInfo(
}
rank_info.m_text = irr::core::stringw(str.c_str());
}
else if (kart->hasFinishedRace())
{
rank_info.m_text = kart->getController()->getName();
}
else
{
rank_info.m_text = "";