Bugfix: terrain specific sfx was still played when the race was over.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5529 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
94da2e75ca
commit
c5d56b90a2
@ -278,12 +278,9 @@ void Kart::createPhysics()
|
||||
*/
|
||||
Kart::~Kart()
|
||||
{
|
||||
//stop the engine sound
|
||||
if(m_engine_sound)
|
||||
{
|
||||
m_engine_sound->stop();
|
||||
}
|
||||
|
||||
//stop kart specific sfx
|
||||
if(m_engine_sound) m_engine_sound->stop();
|
||||
if(m_terrain_sound) m_terrain_sound->stop();
|
||||
// Delete all custom sounds (TODO: add back when properly done)
|
||||
/*
|
||||
for (int n = 0; n < SFXManager::NUM_CUSTOMS; n++)
|
||||
@ -296,6 +293,7 @@ Kart::~Kart()
|
||||
sfx_manager->deleteSFX(m_crash_sound );
|
||||
sfx_manager->deleteSFX(m_skid_sound );
|
||||
sfx_manager->deleteSFX(m_goo_sound );
|
||||
if(m_terrain_sound) sfx_manager->deleteSFX(m_terrain_sound);
|
||||
|
||||
if(m_smoke_system) delete m_smoke_system;
|
||||
if(m_water_splash_system) delete m_water_splash_system;
|
||||
|
Loading…
x
Reference in New Issue
Block a user