mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-22 07:47:36 -04:00
Core/Objects: Treat areas that have ParentAreaID filled but dont have IsSubzone flag as zones instead of areas
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user