mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-08 15:33:53 +00:00
Don't respawn doors while clients are zoning
Fixes regression from b08dc02a (PR #1051) The normal door list sent on zone entry caused unopenable double doors on clients if an api respawned them while the client was zoning. This waits until the client finishes zoning and has received the initial door list before sending any despawn/respawn packets.
This commit is contained in:
parent
0f5a7e1317
commit
312ee2b42c
@ -2511,7 +2511,7 @@ void EntityList::DespawnAllDoors()
|
||||
auto outapp = new EQApplicationPacket(OP_RemoveAllDoors, 0);
|
||||
for (auto it = client_list.begin(); it != client_list.end(); ++it) {
|
||||
if (it->second) {
|
||||
it->second->QueuePacket(outapp);
|
||||
it->second->QueuePacket(outapp, true, Client::CLIENT_CONNECTED);
|
||||
}
|
||||
}
|
||||
safe_delete(outapp);
|
||||
@ -2524,7 +2524,7 @@ void EntityList::RespawnAllDoors()
|
||||
if (it->second) {
|
||||
auto outapp = new EQApplicationPacket();
|
||||
MakeDoorSpawnPacket(outapp, it->second);
|
||||
it->second->FastQueuePacket(&outapp);
|
||||
it->second->FastQueuePacket(&outapp, true, Client::CLIENT_CONNECTED);
|
||||
}
|
||||
++it;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user