Also show name of selected karts on waiting screen.

This commit is contained in:
hiker
2016-03-21 09:39:17 +11:00
parent be7c7bfcbc
commit 05483396c2

View File

@@ -76,9 +76,13 @@ void WaitingForOthersScreen::onUpdate(float dt)
continue;
core::stringw name = profile->getName();
w += name + L" : ";
int playerId = profile->getGlobalPlayerId();
const std::string &kart = profile->getKartName();
if (!kart.empty())
name += StringUtils::insertValues(L" (%s)", core::stringw(kart.c_str()));
w += name + L" : ";
const RaceVote& vote = config->getRaceVote(playerId);
if (vote.hasVotedTrack())
{