From c66ada8168734c059c208f3e2df3d5c0781661b9 Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 15 May 2011 18:28:07 +0000 Subject: [PATCH] Suppress annoying warning git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8589 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/audio/sfx_openal.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/audio/sfx_openal.cpp b/src/audio/sfx_openal.cpp index 4b32298fd..860021ad2 100644 --- a/src/audio/sfx_openal.cpp +++ b/src/audio/sfx_openal.cpp @@ -22,6 +22,7 @@ #include "audio/sfx_openal.hpp" #include "audio/sfx_buffer.hpp" +#include "race/race_manager.hpp" #include #include #include @@ -229,7 +230,12 @@ void SFXOpenAL::position(const Vec3 &position) } if (!m_positional) { - fprintf(stderr, "WARNING, position called on non-positional SFX\n"); + // in multiplayer, all sounds are positional, so in this case don't bug users with + // an error messageif (race_manager->getNumLocalPlayers() > 1) + if (race_manager->getNumLocalPlayers() == 1) + { + fprintf(stderr, "WARNING, position called on non-positional SFX\n"); + } return; }