In multiplayer mode, reduce the sfx of AIs more than those of players
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7814 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
7614caf288
commit
a3f2805aa4
@ -139,10 +139,20 @@ Kart::Kart (const std::string& ident, Track* track, int position,
|
||||
// In multiplayer mode, sounds are NOT positional
|
||||
if (race_manager->getNumLocalPlayers() > 1)
|
||||
{
|
||||
m_goo_sound->volume( 1.0f / race_manager->getNumberOfKarts() );
|
||||
m_skid_sound->volume( 1.0f / race_manager->getNumberOfKarts() );
|
||||
m_crash_sound->volume( 1.0f / race_manager->getNumberOfKarts() );
|
||||
m_beep_sound->volume( 1.0f / race_manager->getNumberOfKarts() );
|
||||
if (type == RaceManager::KT_PLAYER)
|
||||
{
|
||||
m_goo_sound->volume( 1.0f / race_manager->getNumLocalPlayers() );
|
||||
m_skid_sound->volume( 1.0f / race_manager->getNumLocalPlayers() );
|
||||
m_crash_sound->volume( 1.0f / race_manager->getNumLocalPlayers() );
|
||||
m_beep_sound->volume( 1.0f / race_manager->getNumLocalPlayers() );
|
||||
}
|
||||
else
|
||||
{
|
||||
m_goo_sound->volume( 1.0f / race_manager->getNumberOfKarts() );
|
||||
m_skid_sound->volume( 1.0f / race_manager->getNumberOfKarts() );
|
||||
m_crash_sound->volume( 1.0f / race_manager->getNumberOfKarts() );
|
||||
m_beep_sound->volume( 1.0f / race_manager->getNumberOfKarts() );
|
||||
}
|
||||
}
|
||||
|
||||
if(!m_engine_sound)
|
||||
|
Loading…
Reference in New Issue
Block a user