Fixed usages of abs() function with double arguments

Clang no longer issues "warning: using integer absolute value function 'abs' when argument is of floating point type"
This commit is contained in:
alexey.lysiuk 2016-07-30 10:15:13 +03:00 committed by Christoph Oelckers
commit cbe0a34f0b
2 changed files with 2 additions and 2 deletions

View file

@ -916,7 +916,7 @@ void R_ProjectSprite (AActor *thing, int fakeside, F3DFloor *fakefloor, F3DFloor
// too far off the side?
// if it's a voxel, it can be further off the side
if ((voxel == NULL && (fabs(tx / 64) > fabs(tz))) ||
(voxel != NULL && (fabs(tx / 128) > abs(tz))))
(voxel != NULL && (fabs(tx / 128) > fabs(tz))))
{
return;
}