Replaced more getStatus() functions.

This commit is contained in:
hiker
2014-10-10 16:48:21 +11:00
parent 61068c7278
commit 77bd4140a8

View File

@@ -1893,12 +1893,12 @@ void Kart::crashed(const Material* m, AbstractKart *k)
// it's not already playing.
if (isShielded() || (k != NULL && k->isShielded()))
{
if (m_boing_sound->getStatus() != SFXManager::SFX_PLAYING)
if (!m_boing_sound->isPlaying())
m_boing_sound->play();
}
else
{
if(m_crash_sound->getStatus() != SFXManager::SFX_PLAYING)
if(!m_crash_sound->isPlaying())
m_crash_sound->play();
}
}
@@ -1973,7 +1973,7 @@ bool Kart::playCustomSFX(unsigned int type)
// SFXManager::get()->getCustomTagName(type),
// m_kart_properties->getIdent().c_str());
// If it's already playing, let it finish
if (m_custom_sounds[type]->getStatus() != SFXManager::SFX_PLAYING)
if (!m_custom_sounds[type]->isPlaying())
{
m_custom_sounds[type]->play();
}