Core/Maps: Adjusted logic in GetFullTerrainStatusForPosition to closer match what the client does regarding being inside WMOs

Port From (https://github.com/TrinityCore/TrinityCore/commit/453b59de57b3502163adc99a6fc9cbeec0645dcf)
This commit is contained in:
hondacrx
2021-09-26 11:32:01 -04:00
parent 9d5cf1d4ae
commit 7befdbd11b
9 changed files with 275 additions and 174 deletions
@@ -774,7 +774,10 @@ namespace Game.Movement
void NormalizePath()
{
for (uint i = 0; i < _pathPoints.Length; ++i)
{
_pathPoints[i].Z += _sourceUnit.GetCollisionHeight();
_sourceUnit.UpdateAllowedPositionZ(_pathPoints[i].X, _pathPoints[i].Y, ref _pathPoints[i].Z);
}
}
void BuildShortcut()