Let dz handle client removal timers

Remove all clients inside a dz, not just those assigned to instance
This commit is contained in:
hg
2020-05-07 18:38:43 -04:00
parent 9102bb1478
commit eccc79e4ce
6 changed files with 54 additions and 15 deletions
+1 -10
View File
@@ -494,16 +494,7 @@ bool Expedition::AddMember(const std::string& add_char_name, uint32_t add_char_i
void Expedition::RemoveAllMembers(bool enable_removal_timers, bool update_dz_expire_time)
{
m_dynamiczone.RemoveAllCharacters();
if (enable_removal_timers)
{
// expedition holds member list (not dz) so inform dz members to start kick timers
for (const auto& member : m_members)
{
m_dynamiczone.SendInstanceCharacterChange(member.char_id, true);
}
}
m_dynamiczone.RemoveAllCharacters(enable_removal_timers);
if (update_dz_expire_time && RuleB(Expedition, EmptyDzShutdownEnabled))
{