Merge branch 'master' into bot-rewrite

This commit is contained in:
nytmyr
2025-01-31 00:24:05 -06:00
15 changed files with 140 additions and 147 deletions
+3 -4
View File
@@ -3824,13 +3824,12 @@ int NPC::GetRolledItemCount(uint32 item_id)
void NPC::SendPositionToClients()
{
auto p = new EQApplicationPacket(OP_ClientUpdate, sizeof(PlayerPositionUpdateServer_Struct));
auto *s = (PlayerPositionUpdateServer_Struct *) p->pBuffer;
static EQApplicationPacket p(OP_ClientUpdate, sizeof(PlayerPositionUpdateServer_Struct));
auto *s = (PlayerPositionUpdateServer_Struct *) p.pBuffer;
for (auto &c: entity_list.GetClientList()) {
MakeSpawnUpdate(s);
c.second->QueuePacket(p, false);
c.second->QueuePacket(&p, false);
}
safe_delete(p);
}
void NPC::HandleRoambox()