From 2467f799bb85c30daae0df83810336486f9ed1a5 Mon Sep 17 00:00:00 2001 From: killerwife Date: Sun, 4 Apr 2021 21:52:57 +0200 Subject: MapExtraction: Fix water height redundancy algorithm ignoring "no water" (#26324) * MapExtraction: Fix water height redundancy algorithm ignoring "no water" * Update MMAP_VERSION * Change map version Co-authored-by: jackpoz (cherry picked from commit 00da074109e713280264761eedfbf6e5dc7ef912) --- src/tools/map_extractor/System.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tools/map_extractor') diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp index 2fdfe85c91a..bde10bc6fe0 100644 --- a/src/tools/map_extractor/System.cpp +++ b/src/tools/map_extractor/System.cpp @@ -878,7 +878,10 @@ bool ConvertADT(ChunkedFile& adt, std::string const& mapName, std::string const& if (minHeight > h) minHeight = h; } else + { liquid_height[y][x] = CONF_use_minHeight; + if (minHeight > CONF_use_minHeight) minHeight = CONF_use_minHeight; + } } } map.liquidMapOffset = map.heightMapOffset + map.heightMapSize; -- cgit v1.2.3