refactor(Core/Misc): fabs() to std::fabs() (#9790)
- prefer std functions over C functions
This commit is contained in:
parent
ac99eb48e1
commit
913e65f97f
26 changed files with 43 additions and 43 deletions
|
|
@ -620,7 +620,7 @@ void npc_escortAI::GenerateWaypointArray(Movement::PointsArray* points)
|
|||
for (uint32 i = 1; i < pVector.size() - 1; ++i)
|
||||
{
|
||||
offset = middle - pVector[i];
|
||||
if (fabs(offset.x) >= 0xFF || fabs(offset.y) >= 0xFF || fabs(offset.z) >= 0x7F)
|
||||
if (std::fabs(offset.x) >= 0xFF || std::fabs(offset.y) >= 0xFF || std::fabs(offset.z) >= 0x7F)
|
||||
{
|
||||
// offset is too big, split points
|
||||
continueLoop = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue