Dungeon Finder: Add config value to Enable/Disable Dungeon Finder
Note: Default value = Disable (while is WIP) --HG-- branch : trunk
This commit is contained in:
@@ -75,7 +75,7 @@ LFGMgr::~LFGMgr()
|
||||
|
||||
void LFGMgr::Update(uint32 diff)
|
||||
{
|
||||
if (!m_update)
|
||||
if (!m_update || !sWorld.getConfig(CONFIG_DUNGEON_FINDER_ENABLE))
|
||||
return;
|
||||
|
||||
m_update = false;
|
||||
|
||||
@@ -25,6 +25,11 @@
|
||||
void WorldSession::HandleLfgJoinOpcode(WorldPacket &recv_data)
|
||||
{
|
||||
sLog.outDebug("CMSG_LFG_JOIN");
|
||||
if (!sWorld.getConfig(CONFIG_DUNGEON_FINDER_ENABLE))
|
||||
{
|
||||
recv_data.rpos(recv_data.wpos());
|
||||
return;
|
||||
}
|
||||
|
||||
uint8 numDungeons;
|
||||
uint32 dungeon;
|
||||
|
||||
@@ -1220,6 +1220,9 @@ void World::LoadConfigSettings(bool reload)
|
||||
m_configs[CONFIG_CHATLOG_ADDON] = sConfig.GetBoolDefault("ChatLogs.Addon", false);
|
||||
m_configs[CONFIG_CHATLOG_BGROUND] = sConfig.GetBoolDefault("ChatLogs.Battleground", false);
|
||||
|
||||
// Dungeon finder
|
||||
m_configs[CONFIG_DUNGEON_FINDER_ENABLE] = sConfig.GetBoolDefault("DungeonFinder.Enable", false);
|
||||
|
||||
sScriptMgr.OnConfigLoad(reload);
|
||||
}
|
||||
|
||||
|
||||
@@ -285,6 +285,7 @@ enum WorldConfigs
|
||||
CONFIG_CHARDELETE_METHOD,
|
||||
CONFIG_CHARDELETE_MIN_LEVEL,
|
||||
CONFIG_CLEAN_CHARACTER_DB,
|
||||
CONFIG_DUNGEON_FINDER_ENABLE,
|
||||
CONFIG_VALUE_COUNT
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user