aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-02-08 17:50:26 -0500
committerkwolekr <kwolekr@minetest.net>2014-02-08 17:50:59 -0500
commit83bafbe08b508266d31a6a76f1ffc2cddc662390 (patch)
tree555f877e367a8e1a00200c3fe3fa889538169291 /src/script/cpp_api
parentf4f98c9550325aa8178f99cd32ea8806669aa280 (diff)
downloadminetest-83bafbe08b508266d31a6a76f1ffc2cddc662390.tar.gz
minetest-83bafbe08b508266d31a6a76f1ffc2cddc662390.tar.bz2
minetest-83bafbe08b508266d31a6a76f1ffc2cddc662390.zip
Make flag strings clear specified flag with 'no' prefix
Remove flagmask field from set_mapgen_params table Add small bits of needed documentation
Diffstat (limited to 'src/script/cpp_api')
-rw-r--r--src/script/cpp_api/s_env.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_env.cpp b/src/script/cpp_api/s_env.cpp
index 2c2198edf..b0de675ec 100644
--- a/src/script/cpp_api/s_env.cpp
+++ b/src/script/cpp_api/s_env.cpp
@@ -78,7 +78,8 @@ void ScriptApiEnv::environment_OnMapgenInit(MapgenParams *mgparams)
lua_pushinteger(L, mgparams->water_level);
lua_setfield(L, -2, "water_level");
- std::string flagstr = writeFlagString(mgparams->flags, flagdesc_mapgen);
+ std::string flagstr = writeFlagString(mgparams->flags,
+ flagdesc_mapgen, (u32)-1);
lua_pushstring(L, flagstr.c_str());
lua_setfield(L, -2, "flags");