[Fix] Bulk Send Corpses after Idle State (#4910)

This commit is contained in:
Chris Miles 2025-06-09 14:31:28 -05:00 committed by GitHub
parent befee1c729
commit a0ff9d67a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(),