mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 15:58:36 +00:00
Require zone id to get expedition by instance id
This is a breaking api change eq.get_expedition_by_instance_id(instance_id) is replaced with eq.get_expedition_by_zone_instance(zone_id, instance_id) This replaces the FindCachedExpeditionByInstanceID method of obtaining expeditions via instance id with a new method that requires the dz zone id as well
This commit is contained in:
+2
-2
@@ -1492,7 +1492,7 @@ bool Zone::Process() {
|
||||
if(Instance_Timer->Check())
|
||||
{
|
||||
// if this is a dynamic zone instance notify system associated with it
|
||||
Expedition* expedition = Expedition::FindCachedExpeditionByInstanceID(GetInstanceID());
|
||||
auto expedition = Expedition::FindCachedExpeditionByZoneInstance(GetZoneID(), GetInstanceID());
|
||||
if (expedition)
|
||||
{
|
||||
expedition->RemoveAllMembers(false); // entity list will teleport clients out immediately
|
||||
@@ -2722,7 +2722,7 @@ DynamicZone Zone::GetDynamicZone()
|
||||
return {}; // invalid
|
||||
}
|
||||
|
||||
auto expedition = Expedition::FindCachedExpeditionByInstanceID(GetInstanceID());
|
||||
auto expedition = Expedition::FindCachedExpeditionByZoneInstance(GetZoneID(), GetInstanceID());
|
||||
if (expedition)
|
||||
{
|
||||
return expedition->GetDynamicZone();
|
||||
|
||||
Reference in New Issue
Block a user