mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
Merge pull request #1051 from hgtw/fix/missing-doors
Fix edge case with door packets that can cause missing doors on clients
This commit is contained in:
commit
6a817fdce5
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user