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 <[email protected]>
(cherry picked from commit 00da074109e713280264761eedfbf6e5dc7ef912)
This commit is contained in:
killerwife
2022-01-04 20:44:25 +01:00
committed by Shauren
parent 1ba940b17a
commit 2467f799bb
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -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;