From: <sc...@us...> - 2008-10-21 16:13:47
|
Revision: 2361 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=2361&view=rev Author: scifly Date: 2008-10-21 16:04:54 +0000 (Tue, 21 Oct 2008) Log Message: ----------- Bugfix: Players can no longer set highscores of 0.00 if they do not finish a race. Modified Paths: -------------- trunk/supertuxkart/src/modes/world.cpp Modified: trunk/supertuxkart/src/modes/world.cpp =================================================================== --- trunk/supertuxkart/src/modes/world.cpp 2008-10-21 00:29:29 UTC (rev 2360) +++ trunk/supertuxkart/src/modes/world.cpp 2008-10-21 16:04:54 UTC (rev 2361) @@ -337,8 +337,9 @@ 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]]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |