Core/MMAPs: Fix small steps being considered as NAV_AREA_GROUND_STEEP

Port From (https://github.com/TrinityCore/TrinityCore/commit/ddcbc01a65a3c8aff1248354f5c900faf719cc4a)
This commit is contained in:
hondacrx
2022-02-22 19:28:10 -05:00
parent 3292e8d5ab
commit 0f3c086442
@@ -1100,9 +1100,9 @@ namespace Game.Movement
Empty = 0, Empty = 0,
MagmaSlime = 8, // don't need to differentiate between them MagmaSlime = 8, // don't need to differentiate between them
Water = 9, Water = 9,
Ground = 10, GroundSteep = 10,
GroundSteep = 11, Ground = 11,
MaxValue = GroundSteep, MaxValue = Ground,
MinValue = MagmaSlime, MinValue = MagmaSlime,
AllMask = 0x3F // max allowed value AllMask = 0x3F // max allowed value
// areas 1-60 will be used for destructible areas (currently skipped in vmaps, WMO with flag 1) // 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 public enum NavTerrainFlag
{ {
Empty = 0x00, Empty = 0x00,
GroundSteep = 1 << (NavArea.MaxValue - NavArea.GroundSteep),
Ground = 1 << (NavArea.MaxValue - NavArea.Ground), Ground = 1 << (NavArea.MaxValue - NavArea.Ground),
GroundSteep = 1 << (NavArea.MaxValue - NavArea.GroundSteep),
Water = 1 << (NavArea.MaxValue - NavArea.Water), Water = 1 << (NavArea.MaxValue - NavArea.Water),
MagmaSlime = 1 << (NavArea.MaxValue - NavArea.MagmaSlime) MagmaSlime = 1 << (NavArea.MaxValue - NavArea.MagmaSlime)
} }