mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-19 07:51:43 +00:00
Portal lines now use the taglist's first element.
This commit is contained in:
parent
b9decb2837
commit
e59480e4cf
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue