Fixed map centering, and converted polygon coordinates to map nodes instead of grid nodes.

This commit is contained in:
Gael-de-Sailly
2020-12-22 16:38:30 +01:00
parent d5cf4a6267
commit faef1658a9
2 changed files with 35 additions and 31 deletions

View File

@ -30,7 +30,7 @@ local function heightmaps(minp, maxp)
local poly = polygons[i]
if poly then
local xf, zf = transform_quadri(poly.x, poly.z, x/blocksize, z/blocksize)
local xf, zf = transform_quadri(poly.x, poly.z, x, z)
local i00, i01, i11, i10 = unpack(poly.i)
-- Load river width on 4 edges and corners