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
|
@ -839,12 +839,11 @@ void push_hit_params(lua_State *L,const HitParams ¶ms)
|
|||
}
|
||||
|
||||
/******************************************************************************/
|
||||
u32 getflagsfield(lua_State *L, int table,
|
||||
const char *fieldname, FlagDesc *flagdesc) {
|
||||
std::string flagstring;
|
||||
|
||||
flagstring = getstringfield_default(L, table, fieldname, "");
|
||||
return readFlagString(flagstring, flagdesc);
|
||||
u32 getflagsfield(lua_State *L, int table, const char *fieldname,
|
||||
FlagDesc *flagdesc, u32 *flagmask)
|
||||
{
|
||||
std::string flagstring = getstringfield_default(L, table, fieldname, "");
|
||||
return readFlagString(flagstring, flagdesc, flagmask);
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue