diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index b1f7e2057..fc02b0c10 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -4570,7 +4570,6 @@ static int32_t C_ParseCommand(int32_t loop) continue; } - // XXX: may remove bits set in A_InitEnemyFlags! g_tile[j].flags = *g_scriptPtr; continue; diff --git a/polymer/eduke32/source/lunatic/lunacon.lua b/polymer/eduke32/source/lunatic/lunacon.lua index 444e96552..c2cd472c3 100644 --- a/polymer/eduke32/source/lunatic/lunacon.lua +++ b/polymer/eduke32/source/lunatic/lunacon.lua @@ -481,8 +481,11 @@ function reset.codegen() g_have_file = {} g_curcode = new_initial_codetab() - -- [{actor, event, actor}num]=gencode_table - g_code = { actor={}, event={}, loadactor={} } + -- actor, event, loadactor: [{actor, event, actor}num] = gencode_table + -- + -- aflagsloc[actornum]: location of '(user)actor' token, 'spriteflags' or + -- 'sprite*' command; result of getLocation(, ) + g_code = { actor={}, event={}, loadactor={}, aflagsloc={} } g_recurslevel = -1 g_numerrors = 0 @@ -518,6 +521,7 @@ end -- fwd-decls local warnprintf, errprintf, pwarnprintf, perrprintf, contprintf +local getLocation local on = {} @@ -565,6 +569,7 @@ function on.actor_end(pos, usertype, tsamm, codetab) pwarnprintf(pos, "redefined actor %d", tilenum) end g_code.actor[tilenum] = codetab + g_code.aflagsloc[tilenum] = getLocation("definition of actor", pos) end -- NOTE: in C-CON, the slash and backslash can also be part of an identifier, @@ -748,8 +753,11 @@ local g_labelspecial = {} -- [