MMaps phasing

This commit is contained in:
Ovah authored and Aokromes committed 2018-03-12 18:19:19 +00:00
1 parent 813be5c000
commit 60afe858e8
13 files changed
+222 -68

No files matched your search

+3 -1
View File
@@ -133,7 +133,7 @@ void Map::LoadMMap(int gx, int gy)
if (!DisableMgr::IsPathfindingEnabled(GetId()))
return;
bool mmapLoadResult = MMAP::MMapFactory::createOrGetMMapManager()->loadMap((sWorld->GetDataPath() + "mmaps").c_str(), GetId(), gx, gy);
bool mmapLoadResult = MMAP::MMapFactory::createOrGetMMapManager()->loadMap(sWorld->GetDataPath(), GetId(), gx, gy);
if (mmapLoadResult)
TC_LOG_DEBUG("mmaps", "MMAP loaded name:%s, id:%d, x:%d, y:%d (mmap rep.: x:%d, y:%d)", GetMapName(), GetId(), gx, gy, gx, gy);
@@ -291,6 +291,8 @@ i_scriptLock(false), _defaultLight(GetDefaultMapLight(id))
//lets initialize visibility distance for map
Map::InitVisibilityDistance();
MMAP::MMapFactory::createOrGetMMapManager()->loadMapInstance(sWorld->GetDataPath(), GetId(), i_InstanceId);
sScriptMgr->OnCreateMap(this);
}