From 659dd2faeda3562a5d7f52d739d74fb14e56117c Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 22 Feb 2022 19:31:32 -0500 Subject: [PATCH] MapExtraction: Fix water height redundancy algorithm ignoring "no water" Port From (https://github.com/TrinityCore/TrinityCore/commit/2467f799bb85c30daae0df83810336486f9ed1a5) --- Source/Framework/Constants/MapConst.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Framework/Constants/MapConst.cs b/Source/Framework/Constants/MapConst.cs index 73e8759c9..91b4fca75 100644 --- a/Source/Framework/Constants/MapConst.cs +++ b/Source/Framework/Constants/MapConst.cs @@ -59,14 +59,14 @@ namespace Framework.Constants public const float DefaultCollesionHeight = 2.03128f; // Most common value in dbc public const uint MapMagic = 0x5350414D; //"MAPS"; - public const uint MapVersionMagic = 0x392E3176; //"v1.9"; + public const uint MapVersionMagic = 10; public const uint MapVersionMagic2 = 0x302E3276; //"v2.0"; // Hack for some different extractors using v2.0 header public const uint MapAreaMagic = 0x41455241; //"AREA"; public const uint MapHeightMagic = 0x5447484D; //"MHGT"; public const uint MapLiquidMagic = 0x51494C4D; //"MLIQ"; public const uint mmapMagic = 0x4D4D4150; // 'MMAP' - public const int mmapVersion = 11; + public const int mmapVersion = 14; public const string VMapMagic = "VMAP_4.A"; public const float VMAPInvalidHeightValue = -200000.0f;