[8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
--HG-- branch : trunk
This commit is contained in:
1 parent
aaec3c8191
commit
3cf2be6042
26 files changed
+104
-100
No files matched your search
@@ -54,8 +54,7 @@ RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature)
|
||||
creature.GetHomePosition(X, Y, Z, ori);
|
||||
|
||||
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();
|
||||
|
||||
Reference in new issue
Block a user