mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
[Expeditions] Cleanup client dz safe return methods (#1300)
This changes Zone::GetDynamicZone to return a pointer instead of a copy and also lets DynamicZone be forward declared in zone.h
This commit is contained in:
+1
-10
@@ -5251,16 +5251,7 @@ std::unordered_map<uint16, Mob *> &EntityList::GetCloseMobList(Mob *mob, float d
|
||||
|
||||
void EntityList::GateAllClientsToSafeReturn()
|
||||
{
|
||||
DynamicZone dz;
|
||||
if (zone)
|
||||
{
|
||||
dz = zone->GetDynamicZone();
|
||||
|
||||
LogDynamicZones(
|
||||
"Sending all clients in zone: [{}] instance: [{}] to dz safereturn or bind",
|
||||
zone->GetZoneID(), zone->GetInstanceID()
|
||||
);
|
||||
}
|
||||
DynamicZone* dz = zone ? zone->GetDynamicZone() : nullptr;
|
||||
|
||||
for (const auto& client_list_iter : client_list)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user