From e59480e4cffa0a780397955b9dd5c891425c5d94 Mon Sep 17 00:00:00 2001 From: Nev3r Date: Fri, 17 Apr 2020 10:34:24 +0200 Subject: [PATCH] Portal lines now use the taglist's first element. --- src/r_bsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_bsp.c b/src/r_bsp.c index d003db666..d5c18056c 100644 --- a/src/r_bsp.c +++ b/src/r_bsp.c @@ -456,14 +456,14 @@ static void R_AddLine(seg_t *line) if (portalrender < cv_maxportals.value) { size_t p; - INT16 tag = line->linedef->tag; + mtag_t tag = Tag_FGet(&line->linedef->tags); INT32 li1 = line->linedef-lines; INT32 li2; for (p = 0; (li2 = Tag_Iterate_Lines(tag, p)) >= 0; p++) { // Skip invalid lines. - if ((tag != lines[li2].tag) || (lines[li1].special != lines[li2].special) || (li1 == li2)) + if ((tag != Tag_FGet(&lines[li2].tags)) || (lines[li1].special != lines[li2].special) || (li1 == li2)) continue; Portal_Add2Lines(li1, li2, x1, x2);