Scale down height based on the map scaling

This commit is contained in:
Hugues Ross 2020-04-20 19:33:26 -04:00
parent fcb6de872c
commit bb6b1233cd

View File

@ -81,7 +81,7 @@ local function generate_map(data, x, y, w, h, player_x, player_y, detail, map_sc
if biome then
local depth = math.min(math.max(math.floor(height / 8), -8), 0) * -1
height = math.max(math.min(math.floor(height / 4), 8), 0)
height = math.max(math.min(math.floor(height / (math.max(map_scale * 0.5, 1) + 4)), 8), 0)
local mod = "";
if height > 0 then