round coordinate for exact match

master
BuckarooBanzay 2020-07-09 20:17:21 +02:00
parent c79f626337
commit e29eb564b0
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ planetoidgen.planettypes["class-m"] = function(planet, minp, maxp)
if planet.mountains then
-- add y offset to ground level
absolute_y_ground_height = absolute_y_ground_height + y_offset
absolute_y_ground_height = math.floor(absolute_y_ground_height + y_offset)
end
for y=minp.y,maxp.y do