SW: Fix -Wabsolute-value

git-svn-id: https://svn.eduke32.com/eduke32@7556 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-04-10 01:00:35 +00:00 committed by Christoph Oelckers
parent 392917d61f
commit 0b14d8cdb5

View file

@ -621,7 +621,7 @@ SoundDist(int x, int y, int z, int basedist)
for (i=0; i<decay; i++) for (i=0; i<decay; i++)
decayshift *= 2; decayshift *= 2;
if (labs(basedist/decayshift) >= retval) if (fabs(double(basedist)/decayshift) >= retval)
retval = 0; retval = 0;
else else
retval *= decay; retval *= decay;