Bugfix: karts still in a FTL race at the end (i.e. the last player is eliminated)

had their score added twice.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-12-20 00:25:35 +00:00
parent 26c5f8540b
commit c72b0194df

View File

@ -85,11 +85,8 @@ void FollowTheLeaderRace::countdownReachedZero()
// or if all players have gone
if(getCurrentNumKarts()==2 || getCurrentNumPlayers()==0)
{
// Add the results for the remaining kart
for(int i=1; i<(int)race_manager->getNumKarts(); i++)
if(!m_kart[i]->isEliminated())
race_manager->RaceFinished(m_kart[i], TimedRace::getTime());
// Note: LinearWorld::terminateRace adds the scores for all remaining
// karts in the race.
TimedRace::enterRaceOverState();
return;
}