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

This commit is contained in:
MascaraSnake 2022-05-29 11:56:30 +02:00
parent 35a5c82c42
commit 37da148996

View file

@ -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)