add missing brackets, might fix issue #15

This commit is contained in:
HybridDog 2016-04-24 18:46:22 +02:00
parent dee9b5ada1
commit 745fca1c84

View File

@ -38,10 +38,10 @@ local np_ice = {
local function do_ws_func(a, x) local function do_ws_func(a, x)
local n = x/(16000) local n = math.pi * x / 16000
local y = 0 local y = 0
for k=1,1000 do for k = 1,1000 do
y = y + 1000*math.sin(math.pi * k^a * n)/(k^a) y = y + 1000*math.sin(k^a * n)/(k^a)
end end
return y/math.pi return y/math.pi
end end
@ -49,7 +49,7 @@ end
-- caching functions -- caching functions
local default_sidelen = tonumber(minetest.setting_get("chunksize") or 5)*16-1 local default_sidelen = (tonumber(minetest.setting_get("chunksize")) or 5)*16-1
local ws_lists = {} local ws_lists = {}
local function get_ws_list(a,x) local function get_ws_list(a,x)
ws_lists[a] = ws_lists[a] or {} ws_lists[a] = ws_lists[a] or {}