restored braking sound. as a result, skid sound will play even if you go straight (les simportant than braking sound IMO)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2815 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
a8132ae245
commit
737738c855
@ -786,9 +786,7 @@ void Kart::updatePhysics (float dt)
|
||||
}
|
||||
if(m_skidding>1.0f)
|
||||
{
|
||||
const float min_skid_angle = isPlayerKart() ? 0.55f : 0.95f;
|
||||
if(m_skid_sound->getStatus() != SFXManager::SFX_PLAYING &&
|
||||
fabsf(getSteerPercent()) > min_skid_angle )
|
||||
if(m_skid_sound->getStatus() != SFXManager::SFX_PLAYING)
|
||||
m_skid_sound->play();
|
||||
}
|
||||
else if(m_skid_sound->getStatus() == SFXManager::SFX_PLAYING)
|
||||
|
Loading…
x
Reference in New Issue
Block a user