mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
This commit is contained in:
parent
1187c8698c
commit
b76c4c2f3c
29 changed files with 99 additions and 99 deletions
|
|
@ -34,8 +34,7 @@ RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature)
|
|||
creature.GetRespawnCoord(X, Y, Z, &ori, &wander_distance);
|
||||
|
||||
z = creature.GetPositionZ();
|
||||
uint32 mapid=creature.GetMapId();
|
||||
Map const* map = MapManager::Instance().GetBaseMap(mapid);
|
||||
Map const* map = creature.GetBaseMap();
|
||||
|
||||
// For 2D/3D system selection
|
||||
//bool is_land_ok = creature.canWalk(); // not used?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue