projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c462463
)
LuaPerlinNoiseMap: Fix 3d noise safety check
author
kwolekr
<kwolekr@minetest.net>
Sat, 13 Dec 2014 03:58:19 +0000
(22:58 -0500)
committer
kwolekr
<kwolekr@minetest.net>
Sat, 13 Dec 2014 03:58:44 +0000
(22:58 -0500)
src/script/lua_api/l_noise.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_noise.cpp
b/src/script/lua_api/l_noise.cpp
index a9b59791f88b2cba044c3ad0c572fe0b56ef5267..5a82b6485bcbddf76e500799b2292d752171e9d0 100644
(file)
--- 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);