Make display of time in highscores uniform

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8883 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-06-12 15:14:53 +00:00
parent 6ef8702364
commit a6f9577b44

View File

@@ -245,12 +245,10 @@ void TrackInfoDialog::updateHighScores()
// Check if this entry is filled or still empty
if (n < amount)
{
char buffer[256];
{
highscores->getEntry(n, kart_name, name, &time);
sprintf(buffer, " : %.2f s\n", time);
std::string time_string = StringUtils::timeToString(time);
const KartProperties* prop = kart_properties_manager->getKart(kart_name);
if (prop != NULL)
@@ -259,7 +257,7 @@ void TrackInfoDialog::updateHighScores()
ITexture* kart_icon_texture = irr_driver->getTexture( icon_path );
m_kart_icons[n]->setImage(kart_icon_texture);
}
line = name + buffer;
line = name + "\t" + core::stringw(time_string.c_str());
}
else
{