refactor(Core/Misc): abs() to std::abs() (#9789)
This commit is contained in:
parent
fe9305c724
commit
ac99eb48e1
25 changed files with 60 additions and 60 deletions
|
|
@ -1004,7 +1004,7 @@ bool PathGenerator::IsWalkableClimb(float x, float y, float z, float destX, floa
|
|||
*/
|
||||
bool PathGenerator::IsWalkableClimb(float x, float y, float z, float destX, float destY, float destZ, float sourceHeight)
|
||||
{
|
||||
float diffHeight = abs(destZ - z);
|
||||
float diffHeight = std::abs(destZ - z);
|
||||
float reqHeight = GetRequiredHeightToClimb(x, y, z, destX, destY, destZ, sourceHeight);
|
||||
// check walkable slopes, based on unit height
|
||||
return diffHeight <= reqHeight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue