mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Expeditions] Move member compass updates to dz (#1371)
This commit is contained in:
@@ -62,7 +62,6 @@ void Expedition::SetDynamicZone(DynamicZone&& dz)
|
||||
dz.SetLeader(GetLeader());
|
||||
|
||||
m_dynamiczone = std::move(dz);
|
||||
m_dynamiczone.RegisterOnCompassChange([this]() { SendCompassUpdateToZoneMembers(); });
|
||||
}
|
||||
|
||||
Expedition* Expedition::TryCreate(
|
||||
@@ -1840,18 +1839,6 @@ void Expedition::HandleWorldMessage(ServerPacket* pack)
|
||||
}
|
||||
}
|
||||
|
||||
void Expedition::SendCompassUpdateToZoneMembers()
|
||||
{
|
||||
for (const auto& member : GetDynamicZone().GetMembers())
|
||||
{
|
||||
Client* member_client = entity_list.GetClientByCharID(member.id);
|
||||
if (member_client)
|
||||
{
|
||||
member_client->SendDzCompassUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool Expedition::CanClientLootCorpse(Client* client, uint32_t npc_type_id, uint32_t spawn_id)
|
||||
{
|
||||
if (client && m_dynamiczone.IsCurrentZoneDzInstance())
|
||||
|
||||
Reference in New Issue
Block a user