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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
a8a66f69
Commit
a8a66f69
authored
Oct 14, 2020
by
Lactozilla
Browse files
Options
Downloads
Patches
Plain Diff
[Software] Use the light at the bottom of the object for splats
parent
4b7bfce9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1257
New sprite features
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/r_things.c
+2
-1
2 additions, 1 deletion
src/r_things.c
with
2 additions
and
1 deletion
src/r_things.c
+
2
−
1
View file @
a8a66f69
...
...
@@ -1914,12 +1914,13 @@ static void R_ProjectSprite(mobj_t *thing)
if
(
thing
->
subsector
->
sector
->
numlights
)
{
INT32
lightnum
;
fixed_t
top
=
(
splat
)
?
gz
:
gzt
;
light
=
thing
->
subsector
->
sector
->
numlights
-
1
;
// R_GetPlaneLight won't work on sloped lights!
for
(
lightnum
=
1
;
lightnum
<
thing
->
subsector
->
sector
->
numlights
;
lightnum
++
)
{
fixed_t
h
=
P_GetLightZAt
(
&
thing
->
subsector
->
sector
->
lightlist
[
lightnum
],
thing
->
x
,
thing
->
y
);
if
(
h
<=
gzt
)
{
if
(
h
<=
top
)
{
light
=
lightnum
-
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