Make linedef 96 skip the control sector

This commit is contained in:
flarn2006 2021-05-29 00:54:31 -04:00
parent 7d71d534d4
commit eee894581a

View file

@ -2983,8 +2983,10 @@ static void P_AddBinaryMapTags(void)
mtag_t tag = Tag_FGet(&lines[i].frontsector->tags);
INT32 s;
TAG_ITER_DECLARECOUNTER(0);
TAG_ITER_SECTORS(0, tag, s)
P_AddBinaryMapTagsFromLine(&sectors[s], &lines[i]);
TAG_ITER_SECTORS(0, tag, s) {
if (s != lines[i].frontsector - sectors) // Skip the control sector
P_AddBinaryMapTagsFromLine(&sectors[s], &lines[i]);
}
} else if (lines[i].special == 97 || lines[i].special == 99) {
P_AddBinaryMapTagsFromLine(lines[i].frontsector, &lines[i]);
} else if (lines[i].special == 98 || lines[i].special == 99) {