MMaps phasing
This commit is contained in:
1 parent
813be5c000
commit
60afe858e8
13 files changed
+222
-68
No files matched your search
@@ -41,7 +41,7 @@ PathGenerator::PathGenerator(const Unit* owner) :
|
||||
TC_LOG_DEBUG("maps", "++ PathGenerator::PathGenerator for %u \n", _sourceUnit->GetGUID().GetCounter());
|
||||
|
||||
uint32 mapId = PhasingHandler::GetTerrainMapId(_sourceUnit->GetPhaseShift(), _sourceUnit->GetMap(), _sourceUnit->GetPositionX(), _sourceUnit->GetPositionY());
|
||||
if (DisableMgr::IsPathfindingEnabled(mapId))
|
||||
if (DisableMgr::IsPathfindingEnabled(_sourceUnit->GetMapId()))
|
||||
{
|
||||
MMAP::MMapManager* mmap = MMAP::MMapFactory::createOrGetMMapManager();
|
||||
_navMesh = mmap->GetNavMesh(mapId);
|
||||
|
||||
Reference in new issue
Block a user