mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make flag strings clear specified flag with 'no' prefix
Remove flagmask field from set_mapgen_params table Add small bits of needed documentation
This commit is contained in:
parent
f4f98c9550
commit
83bafbe08b
19 changed files with 122 additions and 78 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue