mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed a nasty noise problem. Closes #812
This commit is contained in:
parent
dfd9e142d5
commit
2aee50d5b1
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue