[svn] * Another small fix in Random Movement Generator because of Normalized Map Coords
--HG-- branch : trunk
This commit is contained in:
1 parent
32df4d30a1
commit
28ee57b14c
1 file changed
+1
-1
@@ -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