From 0f3c08644206bb808afcf8866674967c08f309f5 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 22 Feb 2022 19:28:10 -0500 Subject: [PATCH] Core/MMAPs: Fix small steps being considered as NAV_AREA_GROUND_STEEP Port From (https://github.com/TrinityCore/TrinityCore/commit/ddcbc01a65a3c8aff1248354f5c900faf719cc4a) --- Source/Game/Movement/Generators/PathGenerator.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Game/Movement/Generators/PathGenerator.cs b/Source/Game/Movement/Generators/PathGenerator.cs index 0d516eef4..fd7940456 100644 --- a/Source/Game/Movement/Generators/PathGenerator.cs +++ b/Source/Game/Movement/Generators/PathGenerator.cs @@ -1100,9 +1100,9 @@ namespace Game.Movement Empty = 0, MagmaSlime = 8, // don't need to differentiate between them Water = 9, - Ground = 10, - GroundSteep = 11, - MaxValue = GroundSteep, + GroundSteep = 10, + Ground = 11, + MaxValue = Ground, MinValue = MagmaSlime, AllMask = 0x3F // max allowed value // areas 1-60 will be used for destructible areas (currently skipped in vmaps, WMO with flag 1) @@ -1112,8 +1112,8 @@ namespace Game.Movement public enum NavTerrainFlag { Empty = 0x00, - GroundSteep = 1 << (NavArea.MaxValue - NavArea.GroundSteep), Ground = 1 << (NavArea.MaxValue - NavArea.Ground), + GroundSteep = 1 << (NavArea.MaxValue - NavArea.GroundSteep), Water = 1 << (NavArea.MaxValue - NavArea.Water), MagmaSlime = 1 << (NavArea.MaxValue - NavArea.MagmaSlime) }