[Fix] Fix NPC ghosting at safe coordinates (#2823)

* [Fix] Fix NPC ghosting at safe coordinates

* Tweak order

* Handle another case
This commit is contained in:
Chris Miles
2023-02-06 17:23:29 -06:00
committed by GitHub
parent b385a4385f
commit 0348cb6b8e
5 changed files with 36 additions and 1 deletions
+11
View File
@@ -3783,3 +3783,14 @@ int NPC::GetRolledItemCount(uint32 item_id)
return rolled_count;
}
void NPC::SendPositionToClients()
{
auto p = new EQApplicationPacket(OP_ClientUpdate, sizeof(PlayerPositionUpdateServer_Struct));
auto *s = (PlayerPositionUpdateServer_Struct *) p->pBuffer;
for (auto &c: entity_list.GetClientList()) {
MakeSpawnUpdate(s);
c.second->QueuePacket(p, false);
}
safe_delete(p);
}