Disable sound emitters in multiplayer mode as OpenAL supports a single listener so we make sounds non-positional in multiplayer and the result is bad for sound emitters that are meant to be localized

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9439 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2011-08-07 01:23:07 +00:00
parent 9fee0c3530
commit 847e25fa0a

View File

@@ -55,7 +55,9 @@ TrackObject::TrackObject(const XMLNode &xml_node)
std::string sound;
xml_node.get("sound", &sound );
if (sound.size() > 0)
// FIXME: at this time sound emitters are just disabled in multiplayer otherwise
// the sounds would be constantly heard
if (sound.size() > 0 && race_manager->getNumLocalPlayers() == 1)
{
float rolloff = 0.5;
xml_node.get("rolloff", &rolloff );