Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
7d3d71c4
Commit
7d3d71c4
authored
5 years ago
by
Nev3r
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of the last case of P_FindSpecialLineFromTag() in the main code.
parent
f9b1acb8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1097
UDMF: Multitag support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/r_bsp.c
+13
-9
13 additions, 9 deletions
src/r_bsp.c
with
13 additions
and
9 deletions
src/r_bsp.c
+
13
−
9
View file @
7d3d71c4
...
...
@@ -451,21 +451,25 @@ static void R_AddLine(seg_t *line)
// Portal line
if
(
line
->
linedef
->
special
==
40
&&
line
->
side
==
0
)
{
// Render portal if recursiveness limit hasn't been reached.
// Otherwise, render the wall normally.
if
(
portalrender
<
cv_maxportals
.
value
)
{
// Find the other side!
INT32
line2
=
P_FindSpecialLineFromTag
(
40
,
line
->
linedef
->
tag
,
-
1
);
if
(
line
->
linedef
==
&
lines
[
line2
])
line2
=
P_FindSpecialLineFromTag
(
40
,
line
->
linedef
->
tag
,
line2
);
if
(
line2
>=
0
)
// found it!
size_t
p
;
INT16
tag
=
line
->
linedef
->
tag
;
INT32
li1
=
line
->
linedef
-
lines
;
INT32
li2
;
for
(
p
=
0
;
(
li2
=
Tag_Iterate_Lines
(
tag
,
p
))
>=
0
;
p
++
)
{
Portal_Add2Lines
(
line
->
linedef
-
lines
,
line2
,
x1
,
x2
);
// Remember the lines for later rendering
//return; // Don't fill in that space now!
// Skip invalid lines.
if
((
tag
!=
lines
[
li2
].
tag
)
||
(
lines
[
li1
].
special
!=
lines
[
li2
].
special
)
||
(
li1
==
li2
))
continue
;
Portal_Add2Lines
(
li1
,
li2
,
x1
,
x2
);
goto
clipsolid
;
}
}
// Recursed TOO FAR (viewing a portal within a portal)
// So uhhh, render it as a normal wall instead or something ???
}
// Single sided line?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment