mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
[svn] * Another small fix in Random Movement Generator because of Normalized Map Coords
--HG-- branch : trunk
This commit is contained in:
@@ -54,7 +54,7 @@ RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature)
|
||||
MaNGOS::NormalizeMapCoord(nx);
|
||||
MaNGOS::NormalizeMapCoord(ny);
|
||||
|
||||
dist = distanceX*distanceX + distanceY*distanceY;
|
||||
dist = (nx - X)*(nx - X) + (ny - Y)*(ny - Y);
|
||||
|
||||
if (is_air_ok) // 3D system above ground and above water (flying mode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user