Skip to content
Snippets Groups Projects
Commit 37da1489 authored by MascaraSnake's avatar MascaraSnake
Browse files

Update triggertag on Tag_SectorFSet if in binary map and the sector has a trigger special

parent 35a5c82c
Branches
Tags
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include "taglist.h" #include "taglist.h"
#include "z_zone.h" #include "z_zone.h"
#include "r_data.h" #include "r_data.h"
#include "r_defs.h" #include "p_spec.h"
// Bit array of whether a tag exists for sectors/lines/things. // Bit array of whether a tag exists for sectors/lines/things.
bitarray_t tags_available[BIT_ARRAY_SIZE (MAXTAGS)]; bitarray_t tags_available[BIT_ARRAY_SIZE (MAXTAGS)];
...@@ -458,10 +458,8 @@ void Tag_SectorFSet (const size_t id, const mtag_t tag) ...@@ -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 // Sectors with linedef trigger effects need to have their trigger tag updated too
// This is a bit of a hack... // 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; sec->triggertag = tag;
}
} }
mtag_t Tag_NextUnused(mtag_t start) mtag_t Tag_NextUnused(mtag_t start)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment