Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2Classic
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
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
chromaticpipe
SRB2Classic
Commits
c48e001c
Commit
c48e001c
authored
3 months ago
by
luigi budd
Browse files
Options
Downloads
Plain Diff
Merge branch SRB2:next into next
parents
64227dc9
33c1289a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/r_splats.c
+4
-12
4 additions, 12 deletions
src/r_splats.c
with
4 additions
and
12 deletions
src/r_splats.c
+
4
−
12
View file @
c48e001c
...
@@ -53,7 +53,7 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
...
@@ -53,7 +53,7 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
if
(
dir
==
0
)
if
(
dir
==
0
)
{
{
for
(;
;
)
for
(;
count
>
0
;
count
--
)
{
{
rastertab
[
y1
].
maxx
=
xs
;
rastertab
[
y1
].
maxx
=
xs
;
rastertab
[
y1
].
tx2
=
xe
;
rastertab
[
y1
].
tx2
=
xe
;
...
@@ -62,13 +62,11 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
...
@@ -62,13 +62,11 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
xs
+=
dx0
;
xs
+=
dx0
;
xe
+=
dx1
;
xe
+=
dx1
;
y1
++
;
y1
++
;
if
(
count
--
<
1
)
break
;
}
}
}
}
else
else
{
{
for
(;
;
)
for
(;
count
>
0
;
count
--
)
{
{
rastertab
[
y1
].
maxx
=
xs
;
rastertab
[
y1
].
maxx
=
xs
;
rastertab
[
y1
].
tx2
=
tc
;
rastertab
[
y1
].
tx2
=
tc
;
...
@@ -77,8 +75,6 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
...
@@ -77,8 +75,6 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
xs
+=
dx0
;
xs
+=
dx0
;
xe
+=
dx1
;
xe
+=
dx1
;
y1
++
;
y1
++
;
if
(
count
--
<
1
)
break
;
}
}
}
}
}
}
...
@@ -95,7 +91,7 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
...
@@ -95,7 +91,7 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
if
(
dir
==
0
)
if
(
dir
==
0
)
{
{
for
(;
;
)
for
(;
count
>
0
;
count
--
)
{
{
rastertab
[
y2
].
minx
=
xs
;
rastertab
[
y2
].
minx
=
xs
;
rastertab
[
y2
].
tx1
=
xe
;
rastertab
[
y2
].
tx1
=
xe
;
...
@@ -104,13 +100,11 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
...
@@ -104,13 +100,11 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
xs
+=
dx0
;
xs
+=
dx0
;
xe
+=
dx1
;
xe
+=
dx1
;
y2
++
;
y2
++
;
if
(
count
--
<
1
)
break
;
}
}
}
}
else
else
{
{
for
(;
;
)
for
(;
count
>
0
;
count
--
)
{
{
rastertab
[
y2
].
minx
=
xs
;
rastertab
[
y2
].
minx
=
xs
;
rastertab
[
y2
].
tx1
=
tc
;
rastertab
[
y2
].
tx1
=
tc
;
...
@@ -119,8 +113,6 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
...
@@ -119,8 +113,6 @@ static void rasterize_segment_tex(INT32 x1, INT32 y1, INT32 x2, INT32 y2, INT32
xs
+=
dx0
;
xs
+=
dx0
;
xe
+=
dx1
;
xe
+=
dx1
;
y2
++
;
y2
++
;
if
(
count
--
<
1
)
break
;
}
}
}
}
}
}
...
...
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