diff --git a/source/sw/src/sounds.cpp b/source/sw/src/sounds.cpp index 206a6d7de..f04cfca21 100644 --- a/source/sw/src/sounds.cpp +++ b/source/sw/src/sounds.cpp @@ -621,7 +621,7 @@ SoundDist(int x, int y, int z, int basedist) for (i=0; i= retval) + if (fabs(double(basedist)/decayshift) >= retval) retval = 0; else retval *= decay;