Core/Objects: Treat areas that have ParentAreaID filled but dont have IsSubzone flag as zones instead of areas

This commit is contained in:
Shauren
2023-10-06 20:22:14 +02:00
parent f774c4e855
commit 0ce96adb7a
9 changed files with 25 additions and 18 deletions
+1 -1
View File
@@ -992,7 +992,7 @@ void WorldObject::ProcessPositionDataChanged(PositionFullTerrainStatus const& da
{
m_zoneId = m_areaId = data.areaId;
if (AreaTableEntry const* area = sAreaTableStore.LookupEntry(m_areaId))
if (area->ParentAreaID)
if (area->ParentAreaID && area->GetFlags().HasFlag(AreaFlags::IsSubzone))
m_zoneId = area->ParentAreaID;
m_outdoors = data.outdoors;
m_staticFloorZ = data.floorZ;