From 37da148996f5c32966f47d2b46bc7eb9935ddb0b Mon Sep 17 00:00:00 2001 From: MascaraSnake Date: Sun, 29 May 2022 11:56:30 +0200 Subject: [PATCH] Update triggertag on Tag_SectorFSet if in binary map and the sector has a trigger special --- src/taglist.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/taglist.c b/src/taglist.c index e933b71fd..305b05f04 100644 --- a/src/taglist.c +++ b/src/taglist.c @@ -14,7 +14,7 @@ #include "taglist.h" #include "z_zone.h" #include "r_data.h" -#include "r_defs.h" +#include "p_spec.h" // Bit array of whether a tag exists for sectors/lines/things. bitarray_t tags_available[BIT_ARRAY_SIZE (MAXTAGS)]; @@ -458,10 +458,8 @@ void Tag_SectorFSet (const size_t id, const mtag_t tag) // Sectors with linedef trigger effects need to have their trigger tag updated too // This is a bit of a hack... - if (sec->flags & MSF_TRIGGERLINE_PLANE || sec->flags & MSF_TRIGGERLINE_MOBJ) - { + if (!udmf && GETSECSPECIAL(sec->special, 2) >= 1 && GETSECSPECIAL(sec->special, 2) <= 7) sec->triggertag = tag; - } } mtag_t Tag_NextUnused(mtag_t start)