Changeset 26 for trunk

Show
Ignore:
Timestamp:
11/19/08 13:24:19 (17 years ago)
Author:
yumileroy
Message:

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

Original author: Neo2003
Date: 2008-10-08 13:37:00-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/RandomMovementGenerator.cpp

    r18 r26  
    5555    MaNGOS::NormalizeMapCoord(ny); 
    5656 
    57     dist = distanceX*distanceX + distanceY*distanceY; 
     57    dist = (nx - X)*(nx - X) + (ny - Y)*(ny - Y); 
    5858 
    5959    if (is_air_ok) // 3D system above ground and above water (flying mode)