diff --git a/extras/conf/udb/Includes/SRB222_linedefs.cfg b/extras/conf/udb/Includes/SRB222_linedefs.cfg index 2f13b92e5..674d20443 100644 --- a/extras/conf/udb/Includes/SRB222_linedefs.cfg +++ b/extras/conf/udb/Includes/SRB222_linedefs.cfg @@ -2508,6 +2508,17 @@ udmf { title = "Linedef Executor Trigger"; + 313 + { + title = "No More Enemies - Once"; + prefix = "(313)"; + arg0 + { + title = "Target sector tag"; + type = 13; + } + } + 323 { title = "NiGHTSerize"; diff --git a/src/p_floor.c b/src/p_floor.c index f421b550f..6a4ef554e 100644 --- a/src/p_floor.c +++ b/src/p_floor.c @@ -1235,7 +1235,7 @@ void T_NoEnemiesSector(noenemies_t *nobaddies) sector_t *sec = NULL; INT32 secnum = -1; boolean FOFsector = false; - mtag_t tag = Tag_FGet(&nobaddies->sourceline->tags); + mtag_t tag = nobaddies->sourceline->args[0]; TAG_ITER_SECTORS(tag, secnum) { diff --git a/src/p_setup.c b/src/p_setup.c index 2ad6dcb06..ce0e27e38 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -3715,6 +3715,9 @@ static void P_ConvertBinaryMap(void) else lines[i].args[1] = 255; break; + case 313: //No more enemies - once + lines[i].args[0] = tag; + break; case 323: //NiGHTSerize - Each time case 324: //NiGHTSerize - Once case 325: //DeNiGHTSerize - Each time