[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(nx);
|
||||||
MaNGOS::NormalizeMapCoord(ny);
|
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)
|
if (is_air_ok) // 3D system above ground and above water (flying mode)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user