Merge branch 'multitag-ignore0' into 'next'

Ignore a linedef tag of 0 when using linedef action 96.

See merge request STJr/SRB2!1543
This commit is contained in:
sphere 2021-06-17 13:03:05 -04:00
commit 3486e12088

View file

@ -2995,7 +2995,7 @@ static void P_AddBinaryMapTags(void)
}
for (j = 0; j < numsectors; j++) {
boolean matches_target_tag = Tag_Find(&sectors[j].tags, target_tag);
boolean matches_target_tag = target_tag && Tag_Find(&sectors[j].tags, target_tag);
size_t k; for (k = 0; k < 4; k++) {
if (lines[i].flags & ML_EFFECT5) {
if (matches_target_tag || (offset_tags[k] && Tag_Find(&sectors[j].tags, offset_tags[k]))) {