feat(Core/Config): Allow disable points of interest for quests (#14501)

This commit is contained in:
Revision
2023-01-05 00:30:57 +01:00
committed by GitHub
parent 28d190c82c
commit 1c523bd611
4 changed files with 18 additions and 0 deletions

View File

@@ -7743,6 +7743,13 @@ void ObjectMgr::LoadPointsOfInterest()
void ObjectMgr::LoadQuestPOI()
{
if (!sWorld->getBoolConfig(CONFIG_QUEST_POI_ENABLED))
{
LOG_INFO("server.loading", ">> Loaded 0 quest POI definitions. Disabled by config.");
LOG_INFO("server.loading", " ");
return;
}
uint32 oldMSTime = getMSTime();
_questPOIStore.clear(); // need for reload case