diff options
author | kwolekr <kwolekr@minetest.net> | 2014-12-12 22:58:19 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-12-12 22:58:44 -0500 |
commit | 035e6bfc18f4e319d5cde2f85c5c72a87294d75b (patch) | |
tree | 63ce8bfd0e5283a074ba809608bd19a6ea103fdd | |
parent | c4624639e6c58184ebad49aa2c914612abc1ff9b (diff) | |
download | minetest-035e6bfc18f4e319d5cde2f85c5c72a87294d75b.tar.gz minetest-035e6bfc18f4e319d5cde2f85c5c72a87294d75b.tar.bz2 minetest-035e6bfc18f4e319d5cde2f85c5c72a87294d75b.zip |
LuaPerlinNoiseMap: Fix 3d noise safety check
-rw-r--r-- | src/script/lua_api/l_noise.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_noise.cpp b/src/script/lua_api/l_noise.cpp index a9b59791f..5a82b6485 100644 --- a/src/script/lua_api/l_noise.cpp +++ b/src/script/lua_api/l_noise.cpp @@ -253,7 +253,7 @@ int LuaPerlinNoiseMap::l_get3dMap_flat(lua_State *L) LuaPerlinNoiseMap::LuaPerlinNoiseMap(NoiseParams *params, int seed, v3s16 size) { - m_is3d = size.Z <= 1; + m_is3d = size.Z > 1; np = *params; try { noise = new Noise(&np, seed, size.X, size.Y, size.Z); |