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

This commit is contained in:
Shauren authored and Ovahlord committed 2023-10-09 21:05:00 +02:00
1 parent 4e67618e5f
commit 8acfadc779
9 files changed
+29 -18

No files matched your search

+3 -2
View File
@@ -27068,8 +27068,9 @@ std::string Player::GetMapAreaAndZoneString() const
{
int locale = GetSession()->GetSessionDbcLocale();
areaName = area->AreaName[locale];
if (AreaTableEntry const* zone = sAreaTableStore.LookupEntry(area->ParentAreaID))
zoneName = zone->AreaName[locale];
if (area->GetFlags().HasFlag(AreaFlags::IsSubzone))
if (AreaTableEntry const* zone = sAreaTableStore.LookupEntry(area->ParentAreaID))
zoneName = zone->AreaName[GetSession()->GetSessionDbcLocale()];
}
std::ostringstream str;