diff options
author | SmallJoker <mk939@ymail.com> | 2014-11-12 21:11:40 +0100 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2014-11-13 23:06:38 +1000 |
commit | 874109c5201c3deed49bc9eb98352e816c271d50 (patch) | |
tree | b4cf37950677c6d399f292fc5704938f60364c6a /src/script/lua_api | |
parent | b57478b93bb1f3fdcd16ffa2d67f2bd37cdbc1c3 (diff) | |
download | minetest-874109c5201c3deed49bc9eb98352e816c271d50.tar.gz minetest-874109c5201c3deed49bc9eb98352e816c271d50.tar.bz2 minetest-874109c5201c3deed49bc9eb98352e816c271d50.zip |
Add option 'eased' to NoiseParams
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_noise.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |