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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user