From 0b14d8cdb5dd50b5b60f15fe30ea3677f5541e84 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 10 Apr 2019 01:00:35 +0000 Subject: [PATCH] SW: Fix -Wabsolute-value git-svn-id: https://svn.eduke32.com/eduke32@7556 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/sw/src/sounds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;