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:
parent
b0eb25ce5e
commit
5d0a30f6cb
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user