fixed a nasty noise problem. Closes #812

This commit is contained in:
oy 2011-08-03 23:13:35 +02:00
parent dfd9e142d5
commit 2aee50d5b1

View file

@ -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)