From 83bafbe08b508266d31a6a76f1ffc2cddc662390 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sat, 8 Feb 2014 17:50:26 -0500 Subject: Make flag strings clear specified flag with 'no' prefix Remove flagmask field from set_mapgen_params table Add small bits of needed documentation --- src/script/cpp_api/s_env.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/script/cpp_api/s_env.cpp') 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"); -- cgit v1.2.3