aboutsummaryrefslogtreecommitdiff
path: root/src/tools/map_extractor
diff options
context:
space:
mode:
authorkillerwife <killerwife@gmail.com>2021-04-04 21:52:57 +0200
committerShauren <shauren.trinity@gmail.com>2022-01-04 20:44:25 +0100
commit2467f799bb85c30daae0df83810336486f9ed1a5 (patch)
treec96347247e58e365d00efb03db02bb3f453683dc /src/tools/map_extractor
parent1ba940b17ae4ab43b91a590ea69b19c0c428dd48 (diff)
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 <giacomopoz@gmail.com> (cherry picked from commit 00da074109e713280264761eedfbf6e5dc7ef912)
Diffstat (limited to 'src/tools/map_extractor')
-rw-r--r--src/tools/map_extractor/System.cpp3
1 files changed, 3 insertions, 0 deletions
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;