From 2aee50d5b1753b2a007fad35629cd2a16e77ba33 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 3 Aug 2011 23:13:35 +0200 Subject: [PATCH] fixed a nasty noise problem. Closes #812 --- src/engine/client/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/sound.cpp b/src/engine/client/sound.cpp index c2ca91f73..aae52e32c 100644 --- a/src/engine/client/sound.cpp +++ b/src/engine/client/sound.cpp @@ -126,7 +126,7 @@ static void Mix(short *pFinalOut, unsigned Frames) int dy = v->m_Y - m_CenterY; int Dist = (int)sqrtf((float)dx*dx+dy*dy); // float here. nasty int p = IntAbs(dx); - if(Dist < Range) + if(Dist >= 0 && Dist < Range) { // panning if(dx > 0)