From 874109c5201c3deed49bc9eb98352e816c271d50 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Wed, 12 Nov 2014 21:11:40 +0100 Subject: Add option 'eased' to NoiseParams Signed-off-by: Craig Robbins --- src/script/lua_api/l_noise.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/lua_api') diff --git a/src/script/lua_api/l_noise.cpp b/src/script/lua_api/l_noise.cpp index 263ecfd69..4f230b76e 100644 --- a/src/script/lua_api/l_noise.cpp +++ b/src/script/lua_api/l_noise.cpp @@ -190,7 +190,7 @@ int LuaPerlinNoiseMap::l_get3dMap(lua_State *L) v3f p = read_v3f(L, 2); Noise *n = o->noise; - n->perlinMap3D(p.X, p.Y, p.Z); + n->perlinMap3D(p.X, p.Y, p.Z, n->np->eased); lua_newtable(L); for (int z = 0; z != n->sz; z++) { @@ -216,7 +216,7 @@ int LuaPerlinNoiseMap::l_get3dMap_flat(lua_State *L) v3f p = read_v3f(L, 2); Noise *n = o->noise; - n->perlinMap3D(p.X, p.Y, p.Z); + n->perlinMap3D(p.X, p.Y, p.Z, n->np->eased); int maplen = n->sx * n->sy * n->sz; -- cgit v1.2.3