Bugfix: in follow the leader mode faster music could be triggered too early.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-04-24 03:03:55 +00:00
parent b0eb25ce5e
commit 5d0a30f6cb

View File

@ -397,7 +397,8 @@ void Kart::doLapCounting ()
m_race_lap++ ;
}
// Sound manager makes sure that only the first call switches the music
if(m_race_lap==race_manager->getNumLaps()-1) // last lap started
if(m_race_lap==race_manager->getNumLaps()-1 &&
race_manager->getRaceMode()!=RaceManager::RM_FOLLOW_LEADER) // last lap started
{
sound_manager->switchToFastMusic();
}