[svn] * Another small fix in Random Movement Generator because of Normalized Map Coords

--HG--
branch : trunk
This commit is contained in:
Neo2003
2008-10-08 13:37:00 -05:00
parent 32df4d30a1
commit 28ee57b14c

View File

@@ -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)
{