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

@ -1566,7 +1566,7 @@ bool P_CheckPosition(AActor *thing, const DVector2 &pos, FCheckPosition &tm, boo
tm.floorpic = *rover->top.texture;
tm.floorterrain = rover->model->GetTerrain(rover->top.isceiling);
}
if (ff_bottom < tm.ceilingz && abs(delta1) >= abs(delta2))
if (ff_bottom < tm.ceilingz && fabs(delta1) >= fabs(delta2))
{
tm.ceilingz = ff_bottom;
tm.ceilingpic = *rover->bottom.texture;