mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 11:28:25 +00:00
Get dz safe return from cache not db
This was loading the dz from database to get safe return data every time a client's dz removal timer triggered Add the Zone::GetDynamicZone() method so zones that are dz instances can find the data from the cache of any dz systems
This commit is contained in:
+2
-2
@@ -5208,7 +5208,7 @@ void EntityList::GateAllClientsToSafeReturn()
|
||||
DynamicZone dz;
|
||||
if (zone)
|
||||
{
|
||||
dz = DynamicZone::LoadDzFromDatabase(zone->GetInstanceID());
|
||||
dz = zone->GetDynamicZone();
|
||||
|
||||
LogDynamicZones(
|
||||
"Sending all clients in zone: [{}] instance: [{}] to dz safereturn or bind",
|
||||
@@ -5221,7 +5221,7 @@ void EntityList::GateAllClientsToSafeReturn()
|
||||
if (client_list_iter.second)
|
||||
{
|
||||
// falls back to gating clients to bind if dz invalid
|
||||
client_list_iter.second->GoToDzSafeReturnOrBind(dz.GetSafeReturnLocation());
|
||||
client_list_iter.second->GoToDzSafeReturnOrBind(dz);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user