mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 00:06:11 +00:00
refactor(Core/Misc): acore to Acore (#6043)
This commit is contained in:
@@ -37,8 +37,8 @@ void ConfusedMovementGenerator<T>::DoInitialize(T* unit)
|
||||
float wanderY = y + (wander_distance * (float)rand_norm() - wander_distance / 2);
|
||||
|
||||
// prevent invalid coordinates generation
|
||||
acore::NormalizeMapCoord(wanderX);
|
||||
acore::NormalizeMapCoord(wanderY);
|
||||
Acore::NormalizeMapCoord(wanderX);
|
||||
Acore::NormalizeMapCoord(wanderY);
|
||||
|
||||
float new_z = unit->GetMapHeight(wanderX, wanderY, z);
|
||||
if (new_z <= INVALID_HEIGHT || fabs(z - new_z) > 3.0f) // pussywizard
|
||||
|
||||
@@ -48,7 +48,7 @@ bool PathGenerator::CalculatePath(float destX, float destY, float destZ, bool fo
|
||||
|
||||
bool PathGenerator::CalculatePath(float x, float y, float z, float destX, float destY, float destZ, bool forceDest)
|
||||
{
|
||||
if (!acore::IsValidMapCoord(destX, destY, destZ) || !acore::IsValidMapCoord(x, y, z))
|
||||
if (!Acore::IsValidMapCoord(destX, destY, destZ) || !Acore::IsValidMapCoord(x, y, z))
|
||||
return false;
|
||||
|
||||
G3D::Vector3 dest(destX, destY, destZ);
|
||||
|
||||
@@ -63,7 +63,7 @@ void RandomMovementGenerator<Creature>::_setRandomLocation(Creature* creature)
|
||||
Map* map = creature->GetMap();
|
||||
float x = _destinationPoints[newPoint].x, y = _destinationPoints[newPoint].y, z = _destinationPoints[newPoint].z;
|
||||
// invalid coordinates
|
||||
if (!acore::IsValidMapCoord(x, y))
|
||||
if (!Acore::IsValidMapCoord(x, y))
|
||||
{
|
||||
_validPointsVector[_currentPoint].erase(randomIter);
|
||||
_preComputedPaths.erase(pathIdx);
|
||||
|
||||
Reference in New Issue
Block a user