mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Send expedition re-invite to clients that zone
Moves expedition message handling in world to Expedition method for messages that need special handling
This commit is contained in:
@@ -404,6 +404,16 @@ void Client::DoZoneSuccess(ZoneChange_Struct *zc, uint16 zone_id, uint32 instanc
|
||||
if(this->GetPet())
|
||||
entity_list.RemoveFromHateLists(this->GetPet());
|
||||
|
||||
if (GetPendingExpeditionInviteID() != 0)
|
||||
{
|
||||
// live re-invites if client zoned with a pending invite, save pending invite info in world
|
||||
auto expedition = Expedition::FindCachedExpeditionByID(GetPendingExpeditionInviteID());
|
||||
if (expedition)
|
||||
{
|
||||
expedition->SendWorldPendingInvite(m_pending_expedition_invite, GetName());
|
||||
}
|
||||
}
|
||||
|
||||
LogInfo("Zoning [{}] to: [{}] ([{}]) - ([{}]) x [{}] y [{}] z [{}]", m_pp.name, ZoneName(zone_id), zone_id, instance_id, dest_x, dest_y, dest_z);
|
||||
|
||||
//set the player's coordinates in the new zone so they have them
|
||||
|
||||
Reference in New Issue
Block a user