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 --- doc/lua_api.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 5536d0bfd..aef17bec8 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1360,11 +1360,10 @@ minetest.get_mapgen_object(objectname) minetest.set_mapgen_params(MapgenParams) ^ Set map generation parameters ^ Function cannot be called after the registration period; only initialization and on_mapgen_init -^ Takes a table as an argument with the fields mgname, seed, water_level, flags, and flagmask. +^ Takes a table as an argument with the fields mgname, seed, water_level, and flags. ^ Leave field unset to leave that parameter unchanged -^ flagmask field must be set to all mapgen flags that are being modified -^ flags contains only the flags that are being set -^ flags and flagmask are in the same format and have the same options as 'mgflags' in minetest.conf +^ flags contains a comma-delimited string of flags to set, or if the prefix "no" is attached, clears instead. +^ flags is in the same format and has the same options as 'mg_flags' in minetest.conf minetest.clear_objects() ^ clear all objects in the environments minetest.line_of_sight(pos1, pos2, stepsize) -> true/false, pos -- cgit v1.2.3