1) Fixed last lap sfx still being played when a race is restarted.
2) Fixed last_lap sfx not being played in the last lap of a restarted race. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -49,7 +49,8 @@ LinearWorld::LinearWorld() : World()
|
||||
void LinearWorld::init()
|
||||
{
|
||||
World::init();
|
||||
const unsigned int kart_amount = m_karts.size();
|
||||
m_last_lap_sfx_played = false;
|
||||
const unsigned int kart_amount = m_karts.size();
|
||||
m_position_index.resize(kart_amount);
|
||||
m_kart_display_info = new RaceGUIBase::KartIconDisplayInfo[kart_amount];
|
||||
|
||||
@@ -102,6 +103,9 @@ LinearWorld::~LinearWorld()
|
||||
void LinearWorld::restartRace()
|
||||
{
|
||||
World::restartRace();
|
||||
//if(m_last_lap_sfx->getStatus()== SFXManager::SFX_PLAYING)
|
||||
// m_last_lap_sfx->stop();
|
||||
m_last_lap_sfx_played = false;
|
||||
|
||||
const unsigned int kart_amount = m_karts.size();
|
||||
for(unsigned int i=0; i<kart_amount; i++)
|
||||
|
||||
Reference in New Issue
Block a user