diff --git a/polymer/eduke32/source/lunatic/doc/lunacon.txt b/polymer/eduke32/source/lunatic/doc/lunacon.txt index 4cc0a6d94..36eb2a7f3 100644 --- a/polymer/eduke32/source/lunatic/doc/lunacon.txt +++ b/polymer/eduke32/source/lunatic/doc/lunacon.txt @@ -320,7 +320,7 @@ Run-time commands ^^^^^^^^^^^^^^^^^ *`activatecheat`*, *`qstrncat`*, *`qsubstr`*, *`clearmapstate`*, `save`, - `savenn`, *`lineintersect`*, *`rayintersect`*, *`sectorofwall`*, *`ssp`*. + `savenn`, *`lineintersect`*, *`rayintersect`*, *`sectorofwall`*. Additionally, various multiplayer-related commands either unconditionally return results as if no multiplayer game is in progress, or are non-functional diff --git a/polymer/eduke32/source/lunatic/lunacon.lua b/polymer/eduke32/source/lunatic/lunacon.lua index 6c515d690..7461a3d9c 100644 --- a/polymer/eduke32/source/lunatic/lunacon.lua +++ b/polymer/eduke32/source/lunatic/lunacon.lua @@ -271,7 +271,7 @@ local g_dynsoundi = nil local g_have_file = {} -- [filename]=true local g_curcode = nil -- a table of string pieces or other "gencode" tables --- will be a table, see reset_codegen() +-- will be a table, see reset.codegen() local g_code = nil @@ -450,7 +450,9 @@ local function new_initial_gvartab() return gamevar end -local function reset_codegen() +local reset = {} + +function reset.codegen() g_funcname = {} g_switchCode = nil g_switchCount = 0 @@ -733,7 +735,7 @@ local g_labeltype = {} local g_labelspecial = {} -- [