mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-29 07:32:02 +00:00
Update triggertag on Tag_SectorFSet if in binary map and the sector has a trigger special
This commit is contained in:
parent
35a5c82c42
commit
37da148996
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||||
|
|
||||||
// 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)
|
||||||
|
|
Loading…
Reference in a new issue