mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 01:13:35 +00:00
[Zoning] Fix zone routing edge case (#4255)
* [Zoning] Fix zone routing edge case * Push
This commit is contained in:
1 parent
2538ee7976
commit
ff3e955804
3 files changed
+17
-5
No files matched your search
@@ -357,3 +357,13 @@ WorldContentService::FindZoneResult WorldContentService::FindZone(uint32 zone_id
|
||||
return WorldContentService::FindZoneResult{.zone_id = 0};
|
||||
}
|
||||
|
||||
bool WorldContentService::IsInPublicStaticInstance(uint32 instance_id)
|
||||
{
|
||||
for (auto &i: m_zone_instances) {
|
||||
if (i.id == instance_id) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -178,6 +178,8 @@ public:
|
||||
};
|
||||
|
||||
FindZoneResult FindZone(uint32 zone_id, uint32 instance_id);
|
||||
bool IsInPublicStaticInstance(uint32 instance_id);
|
||||
|
||||
private:
|
||||
int current_expansion{};
|
||||
std::vector<ContentFlagsRepository::ContentFlags> content_flags;
|
||||
|
||||
Reference in new issue
Block a user