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
This commit is contained in:
hg 2020-05-08 19:01:43 -04:00
parent 0aa8d90e9e
commit b08dc02a0a

View File

@ -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);
}