Make engine sound acute if no wheel load (flying).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5296 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
2142f5f5e2
commit
8d4df87429
@ -1221,7 +1221,14 @@ void Kart::updatePhysics(float dt)
|
||||
// when going faster, use higher pitch for engine
|
||||
if(m_engine_sound && sfx_manager->sfxAllowed())
|
||||
{
|
||||
m_engine_sound->speed(0.6f + (float)(m_speed / max_speed)*0.7f);
|
||||
if(isOnGround())
|
||||
{
|
||||
m_engine_sound->speed(0.6f + (float)(m_speed / max_speed)*0.7f);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_engine_sound->speed(1.4f);
|
||||
}
|
||||
m_engine_sound->position(getXYZ());
|
||||
}
|
||||
#ifdef XX
|
||||
|
Loading…
x
Reference in New Issue
Block a user