void MapPersistentState::ClearRespawnTimes() { m_goRespawnTimes.clear(); m_creatureRespawnTimes.clear(); UnloadIfEmpty(); }
void DungeonPersistentState::RemoveFromBindList(ObjectGuid const& guid) { if (guid.IsPlayer()) m_playerList.erase(guid); else if (guid.IsGroup()) m_groupList.erase(guid); UnloadIfEmpty(); }
void MapPersistentState::SetGORespawnTime(uint32 loguid, time_t t) { if (t > sWorld.GetGameTime()) m_goRespawnTimes[loguid] = t; else { m_goRespawnTimes.erase(loguid); UnloadIfEmpty(); } }
bool InstanceSave::RemoveGroup(Group* group) { m_groupList.remove(group); bool isStillValid = UnloadIfEmpty(); if (m_toDelete) delete this; return isStillValid; }
void MapPersistentState::ClearRespawnTimes() { if (!m_goRespawnTimes.empty()) m_goRespawnTimes.clear(); if (!m_creatureRespawnTimes.empty()) m_creatureRespawnTimes.clear(); if (GetMap()) UnloadIfEmpty(); }
bool InstanceSave::RemovePlayer(Player* player) { _lock.acquire(); m_playerList.remove(player); bool isStillValid = UnloadIfEmpty(); _lock.release(); // delete here if needed, after releasing the lock if (m_toDelete) delete this; return isStillValid; }
void MapPersistentState::ClearRespawnTimes() { try { m_goRespawnTimes.clear(); m_creatureRespawnTimes.clear(); UnloadIfEmpty(); } catch(...) { sWorld.SendGMWorldText(SECURITY_MODERATOR, LANG_ANTICRASH_NOTIFY, "MapPersistentState::ClearRespawnTimes"); sLog.outError("### Casso: MapPersistentState::ClearRespawnTimes: Pokus o zamedzenie crashu aktivovany ###"); sLog.outInterest("### Casso: MapPersistentState::ClearRespawnTimes: Pokus o zamedzenie crashu aktivovany ###"); } }