Re-add z=1 for 2D perlinmap size to fix crashes

Bu işleme şunda yer alıyor:
paramat
2015-01-06 06:46:28 +00:00
ebeveyn c9a2401fd4
işleme 7ecd043206
2 değiştirilmiş dosya ile 4 ekleme ve 5 silme

Dosyayı Görüntüle

@@ -1,4 +1,4 @@
watershed 0.6.4 by paramat watershed 0.6.6 by paramat
For latest stable Minetest back to 0.4.8 For latest stable Minetest back to 0.4.8
Depends default stairs bucket Depends default stairs bucket
Licenses: code WTFPL, textures CC BY-SA Licenses: code WTFPL, textures CC BY-SA

Dosyayı Görüntüle

@@ -1,10 +1,9 @@
-- watershed 0.7.0 by paramat -- watershed 0.6.6 by paramat
-- For latest stable Minetest and back to 0.4.8 -- For latest stable Minetest and back to 0.4.8
-- Depends default stairs bucket -- Depends default stairs bucket
-- License: code WTFPL, textures CC BY-SA -- License: code WTFPL, textures CC BY-SA
-- flags="nolight" replaces set_lighting -- re-add z=1 for z component of 2D noisemap size to fix crashes
-- add paramtype = "light" to light sources. remove dummy luxore and light spread ABM
-- Parameters -- Parameters
@@ -244,7 +243,7 @@ function watershed_chunkgen(x0, y0, z0, x1, y1, z1, area, data)
-- perlinmap stuff -- perlinmap stuff
local sidelen = x1 - x0 + 1 -- chunk sidelength local sidelen = x1 - x0 + 1 -- chunk sidelength
local chulensxyz = {x=sidelen, y=sidelen+2, z=sidelen} -- chunk dimensions, '+2' for overgeneration local chulensxyz = {x=sidelen, y=sidelen+2, z=sidelen} -- chunk dimensions, '+2' for overgeneration
local chulensxz = {x=sidelen, y=sidelen} -- here x = map x, y = map z local chulensxz = {x=sidelen, y=sidelen, z=1} -- here x = map x, y = map z
local minposxyz = {x=x0, y=y0-1, z=z0} local minposxyz = {x=x0, y=y0-1, z=z0}
local minposxz = {x=x0, y=z0} -- here x = map x, y = map z local minposxz = {x=x0, y=z0} -- here x = map x, y = map z
-- 3D and 2D noise objects created once on first mapchunk generation only -- 3D and 2D noise objects created once on first mapchunk generation only