mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 07:36:23 +00:00
refactor(Core/Misc): abs() to std::abs() (#9789)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user