Reduce engines loudness in multiplayer

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7812 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-03-04 19:35:41 +00:00
parent ddf2aa475b
commit cbe4a07c55

View File

@@ -306,7 +306,9 @@ void Kart::startEngineSFX()
{
if(m_engine_sound)
{
m_engine_sound->volume( 1.0f / race_manager->getNumLocalPlayers() );
// in multiplayer mode, sounds are NOT positional (because we have multiple listeners)
// so the engine sounds of all AIs is constantly heard. So reduce volume of all sounds.
m_engine_sound->volume( 1.0f / race_manager->getNumberOfKarts() );
m_engine_sound->speed(0.6f);
m_engine_sound->setLoop(true);
m_engine_sound->play();