mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 11:31:30 +00:00
[Fix] Bulk Send Corpses after Idle State (#4910)
This commit is contained in:
parent
befee1c729
commit
a0ff9d67a1
@ -12796,6 +12796,16 @@ void Client::CheckSendBulkNpcPositions(bool force)
|
||||
updated_count++;
|
||||
}
|
||||
|
||||
if (force) {
|
||||
static EQApplicationPacket p(OP_ClientUpdate, sizeof(PlayerPositionUpdateServer_Struct));
|
||||
auto *s = (PlayerPositionUpdateServer_Struct *) p.pBuffer;
|
||||
for (auto &e: entity_list.GetCorpseList()) {
|
||||
Corpse *c = e.second;
|
||||
MakeSpawnUpdate(s);
|
||||
QueuePacket(&p, false);
|
||||
}
|
||||
}
|
||||
|
||||
LogPositionUpdate(
|
||||
"[{}] Sent [{}] bulk updated NPC positions, skipped [{}] distance_moved [{}] update_range [{}]",
|
||||
GetCleanName(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user