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
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jaden
SRB2
Commits
14cb5415
Commit
14cb5415
authored
3 years ago
by
sphere
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-portals' into 'next'
Fix portals See merge request
STJr/SRB2!1724
parents
a8c2c4eb
89843d0e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/r_main.c
+1
-1
1 addition, 1 deletion
src/r_main.c
src/r_portal.c
+1
-0
1 addition, 0 deletions
src/r_portal.c
src/r_things.c
+2
-2
2 additions, 2 deletions
src/r_things.c
src/r_things.h
+1
-1
1 addition, 1 deletion
src/r_things.h
with
5 additions
and
4 deletions
src/r_main.c
+
1
−
1
View file @
14cb5415
...
...
@@ -1450,7 +1450,7 @@ static void Mask_Post (maskcount_t* m)
void
R_RenderPlayerView
(
player_t
*
player
)
{
U
INT
8
nummasks
=
1
;
INT
32
nummasks
=
1
;
maskcount_t
*
masks
=
malloc
(
sizeof
(
maskcount_t
));
if
(
cv_homremoval
.
value
&&
player
==
&
players
[
displayplayer
])
// if this is display player 1
...
...
This diff is collapsed.
Click to expand it.
src/r_portal.c
+
1
−
0
View file @
14cb5415
...
...
@@ -132,6 +132,7 @@ static portal_t* Portal_Add (const INT16 x1, const INT16 x2)
void
Portal_Remove
(
portal_t
*
portal
)
{
portalcullsector
=
NULL
;
portal_base
=
portal
->
next
;
Z_Free
(
portal
->
ceilingclip
);
Z_Free
(
portal
->
floorclip
);
...
...
This diff is collapsed.
Click to expand it.
src/r_things.c
+
2
−
2
View file @
14cb5415
...
...
@@ -3186,10 +3186,10 @@ static void R_DrawMaskedList (drawnode_t* head)
}
}
void
R_DrawMasked
(
maskcount_t
*
masks
,
U
INT
8
nummasks
)
void
R_DrawMasked
(
maskcount_t
*
masks
,
INT
32
nummasks
)
{
drawnode_t
*
heads
;
/**< Drawnode lists; as many as number of views/portals. */
S
INT
8
i
;
INT
32
i
;
heads
=
calloc
(
nummasks
,
sizeof
(
drawnode_t
));
...
...
This diff is collapsed.
Click to expand it.
src/r_things.h
+
1
−
1
View file @
14cb5415
...
...
@@ -100,7 +100,7 @@ typedef struct
sector_t
*
viewsector
;
}
maskcount_t
;
void
R_DrawMasked
(
maskcount_t
*
masks
,
U
INT
8
nummasks
);
void
R_DrawMasked
(
maskcount_t
*
masks
,
INT
32
nummasks
);
// ----------
// VISSPRITES
...
...
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