From b08dc02a0a02068b131d3520a9d446e2dedfcf46 Mon Sep 17 00:00:00 2001 From: hg <4683435+hgtw@users.noreply.github.com> Date: Fri, 8 May 2020 19:01:43 -0400 Subject: [PATCH] Fix edge case with door packets that can cause missing doors on clients Send OP_RemoveAllDoors packets with default CLIENT_CONNECTINGALL flag to match flag used for OP_SpawnDoor --- zone/entity.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zone/entity.cpp b/zone/entity.cpp index 5290dde0d..605698a5c 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -2506,7 +2506,11 @@ void EntityList::RemoveAllDoors() void EntityList::DespawnAllDoors() { auto outapp = new EQApplicationPacket(OP_RemoveAllDoors, 0); - this->QueueClients(0,outapp); + for (auto it = client_list.begin(); it != client_list.end(); ++it) { + if (it->second) { + it->second->QueuePacket(outapp); + } + } safe_delete(outapp); }