Core/Maps: Improvements to terrain swap handling
Port From (https://github.com/TrinityCore/TrinityCore/commit/eba31dea27b7fdc4a49c024898ef3a01bcbc7295)
This commit is contained in:
@@ -233,8 +233,14 @@ namespace Game.Collision
|
||||
if (!File.Exists(tilefile))
|
||||
{
|
||||
int parentMapId = vm.GetParentMapId(mapID);
|
||||
if (parentMapId != -1)
|
||||
while (parentMapId != -1)
|
||||
{
|
||||
tilefile = vmapPath + GetTileFileName((uint)parentMapId, tileX, tileY);
|
||||
if (File.Exists(tilefile))
|
||||
break;
|
||||
|
||||
parentMapId = vm.GetParentMapId((uint)parentMapId);
|
||||
}
|
||||
}
|
||||
|
||||
if (!File.Exists(tilefile))
|
||||
|
||||
Reference in New Issue
Block a user