forked from mtcontrib/nether-pack
fix old newbie mistake
This commit is contained in:
parent
03da51be24
commit
578919c469
|
@ -139,7 +139,7 @@ local function do_ws_func(depth, a, x)
|
|||
for k=1,depth do
|
||||
y = y + math.sin(k^a * n) / k^a
|
||||
end
|
||||
return SIZE*y/math.pi
|
||||
return SIZE * y / math.pi
|
||||
end
|
||||
|
||||
local chunksize = minetest.setting_get("chunksize") or 5
|
||||
|
@ -161,10 +161,6 @@ end
|
|||
|
||||
|
||||
local function dif(z1, z2)
|
||||
if z1 < 0
|
||||
and z2 < 0 then
|
||||
z1,z2 = -z1,-z2
|
||||
end
|
||||
return math.abs(z1-z2)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user