Don't save highscores for eliminated karts, fix #3560
This commit is contained in:
parent
3363782407
commit
853a08d398
@ -1160,6 +1160,7 @@ void World::updateHighscores(int* best_highscore_rank)
|
|||||||
if(!m_karts[index[pos]]->getController()->isLocalPlayerController())
|
if(!m_karts[index[pos]]->getController()->isLocalPlayerController())
|
||||||
continue;
|
continue;
|
||||||
if (!m_karts[index[pos]]->hasFinishedRace()) continue;
|
if (!m_karts[index[pos]]->hasFinishedRace()) continue;
|
||||||
|
if (m_karts[index[pos]]->isEliminated()) continue;
|
||||||
|
|
||||||
assert(index[pos] < m_karts.size());
|
assert(index[pos] < m_karts.size());
|
||||||
Kart *k = (Kart*)m_karts[index[pos]].get();
|
Kart *k = (Kart*)m_karts[index[pos]].get();
|
||||||
|
Loading…
Reference in New Issue
Block a user