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
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shin_Kinr
SRB2
Commits
62a50c21
Commit
62a50c21
authored
1 year ago
by
Lactozilla
Browse files
Options
Downloads
Patches
Plain Diff
Fix regression
parent
509a4a5c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/r_segs.c
+8
-6
8 additions, 6 deletions
src/r_segs.c
with
8 additions
and
6 deletions
src/r_segs.c
+
8
−
6
View file @
62a50c21
...
...
@@ -279,7 +279,7 @@ void R_RenderMaskedSegRange(drawseg_t *ds, INT32 x1, INT32 x2)
back
=
backsector
;
clipmidtex
=
(
ldef
->
flags
&
ML_CLIPMIDTEX
)
||
(
sidedef
->
flags
&
SIDEFLAG_CLIP_MIDTEX
);
texture_height
=
FixedDiv
(
textureheight
[
texnum
]
,
wall_scaley
)
;
texture_height
=
textureheight
[
texnum
];
if
(
sidedef
->
repeatcnt
)
repeats
=
1
+
sidedef
->
repeatcnt
;
...
...
@@ -287,6 +287,8 @@ void R_RenderMaskedSegRange(drawseg_t *ds, INT32 x1, INT32 x2)
{
fixed_t
high
,
low
;
height
=
FixedDiv
(
texture_height
,
wall_scaley
);
if
(
front
->
ceilingheight
>
back
->
ceilingheight
)
high
=
back
->
ceilingheight
;
else
...
...
@@ -297,8 +299,8 @@ void R_RenderMaskedSegRange(drawseg_t *ds, INT32 x1, INT32 x2)
else
low
=
back
->
floorheight
;
repeats
=
(
high
-
low
)
/
texture_
height
;
if
((
high
-
low
)
%
texture_
height
)
repeats
=
(
high
-
low
)
/
height
;
if
((
high
-
low
)
%
height
)
repeats
++
;
// tile an extra time to fill the gap -- Monster Iestyn
}
else
...
...
@@ -346,7 +348,7 @@ void R_RenderMaskedSegRange(drawseg_t *ds, INT32 x1, INT32 x2)
}
}
dc_texheight
=
textureheight
[
texnum
]
>>
FRACBITS
;
dc_texheight
=
texture
_
height
>>
FRACBITS
;
// draw the columns
for
(
dc_x
=
x1
;
dc_x
<=
x2
;
dc_x
++
)
...
...
@@ -354,9 +356,9 @@ void R_RenderMaskedSegRange(drawseg_t *ds, INT32 x1, INT32 x2)
dc_texturemid
=
ds
->
maskedtextureheight
[
dc_x
];
if
(
ldef
->
flags
&
ML_MIDPEG
)
dc_texturemid
+=
(
textureheight
[
texnum
])
*
times
+
textureheight
[
texnum
]
;
dc_texturemid
+=
texture
_
height
*
times
+
texture
_
height
;
else
dc_texturemid
-=
(
textureheight
[
texnum
])
*
times
;
dc_texturemid
-=
texture
_
height
*
times
;
// Check for overflows first
overflow_test
=
(
INT64
)
centeryfrac
-
(((
INT64
)
dc_texturemid
*
spryscale
)
>>
FRACBITS
);
...
...
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