mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
SW: Fix -Wabsolute-value
git-svn-id: https://svn.eduke32.com/eduke32@7556 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
392917d61f
commit
0b14d8cdb5
1 changed files with 1 additions and 1 deletions
|
@ -621,7 +621,7 @@ SoundDist(int x, int y, int z, int basedist)
|
|||
for (i=0; i<decay; i++)
|
||||
decayshift *= 2;
|
||||
|
||||
if (labs(basedist/decayshift) >= retval)
|
||||
if (fabs(double(basedist)/decayshift) >= retval)
|
||||
retval = 0;
|
||||
else
|
||||
retval *= decay;
|
||||
|
|
Loading…
Reference in a new issue