Core/World: implement database support for default map and realm wide world states

This commit is contained in:
Ovahlord committed 2021-06-13 16:07:38 +02:00
1 parent a20ce4309b
commit 5fd77a3b28
8 files changed
+180 -5

No files matched your search

+3
View File
@@ -49,6 +49,7 @@
#include "Weather.h"
#include "WeatherMgr.h"
#include "World.h"
#include "WorldStateMgr.h"
#include "WorldStatePackets.h"
#include <unordered_set>
#include <vector>
@@ -367,6 +368,8 @@ i_scriptLock(false), _respawnCheckTimer(0)
MMAP::MMapFactory::createOrGetMMapManager()->loadMapInstance(sWorld->GetDataPath(), GetId(), i_InstanceId);
sScriptMgr->OnCreateMap(this);
sWorldStateMgr->FillDefaultWorldStatesForMap(_worldStates, id);
}
void Map::InitVisibilityDistance()