Bugfix: Players can no longer set highscores of 0.00 if they do not

finish a race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
scifly 2008-10-21 16:04:54 +00:00
parent bc842b38ab
commit ec272cf9ec

View File

@ -337,8 +337,9 @@ void World::updateHighscores()
continue;
}
// Only record times for player karts
if(!m_kart[index[pos]]->isPlayerKart()) continue;
// Only record times for player karts and only if they finished the race
if(!m_kart[index[pos]]->isPlayerKart()) continue;
if (!m_kart[index[pos]]->hasFinishedRace()) continue;
PlayerKart *k = (PlayerKart*)m_kart[index[pos]];