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:
parent
bc842b38ab
commit
ec272cf9ec
@ -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]];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user