void LFGGroupState::Clear() { queued = false; update = true; m_status = LFG_STATUS_NOT_SAVED; m_votesNeeded = 3; m_kicksLeft = 5; kickActive = false; m_DungeonsList.clear(); m_flags = LFG_MEMBER_FLAG_NONE | LFG_MEMBER_FLAG_COMMENT | LFG_MEMBER_FLAG_ROLES | LFG_MEMBER_FLAG_BIND; m_proposal = NULL; m_roleCheckCancelTime = 0; m_roleCheckState = LFG_ROLECHECK_NONE; SetDungeon(NULL); }
void LFGGroupState::Clear() { LFGMgr::WriteGuard Guard(sLFGMgr.GetLock()); queued = false; update = true; m_status = LFG_STATUS_NOT_SAVED; m_votesNeeded = 3; m_kicksLeft = sWorld.getConfig(CONFIG_UINT32_LFG_MAXKICKS); m_flags = LFG_MEMBER_FLAG_NONE | LFG_MEMBER_FLAG_COMMENT | LFG_MEMBER_FLAG_ROLES | LFG_MEMBER_FLAG_BIND; m_proposal = NULL; m_roleCheckCancelTime = 0; m_roleCheckState = LFG_ROLECHECK_NONE; m_type = LFG_TYPE_NONE; m_DungeonsList.clear(); m_LockMap.clear(); SetDungeon(NULL); SetState(LFG_STATE_NONE); SaveState(); StopBoot(); SetRandomPlayersCount(0); }