removed one more explicit reference to a game mode, using a more dynamic/extendable call instead
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2317 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -239,7 +239,7 @@ void LinearWorld::doLapCounting ( KartInfo& kart_info, Kart* kart )
|
||||
}
|
||||
// Race finished
|
||||
if(kart_info.m_race_lap >= race_manager->getNumLaps() &&
|
||||
race_manager->getMinorMode() != RaceManager::MINOR_MODE_FOLLOW_LEADER)
|
||||
race_manager->getMinorMode() != race_manager->raceHasLaps())
|
||||
{
|
||||
// A client wait does not detect race finished by itself, it will
|
||||
// receive a message from the server. So a client does not do
|
||||
|
||||
Reference in New Issue
Block a user