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
Toby Games
SRB2
Commits
491c77bd
Commit
491c77bd
authored
9 months ago
by
Unmatched Bracket
Browse files
Options
Downloads
Patches
Plain Diff
[quake fixes] Use P_MobjWasRemoved instead of checking against NULL per Zapony's suggestion
parent
209c5457
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_main.c
+1
-1
1 addition, 1 deletion
src/r_main.c
with
1 addition
and
1 deletion
src/r_main.c
+
1
−
1
View file @
491c77bd
...
@@ -1153,7 +1153,7 @@ void R_SetupFrame(player_t *player)
...
@@ -1153,7 +1153,7 @@ void R_SetupFrame(player_t *player)
if
(
quake
.
epicenter
)
{
if
(
quake
.
epicenter
)
{
// Calculate 3D distance from epicenter, using the camera.
// Calculate 3D distance from epicenter, using the camera.
fixed_t
xydist
,
dist
;
fixed_t
xydist
,
dist
;
if
(
r_viewmobj
==
NULL
)
{
if
(
P_MobjWasRemoved
(
r_viewmobj
)
)
{
xydist
=
R_PointToDist2
(
thiscam
->
x
,
thiscam
->
y
,
quake
.
epicenter
->
x
,
quake
.
epicenter
->
y
);
xydist
=
R_PointToDist2
(
thiscam
->
x
,
thiscam
->
y
,
quake
.
epicenter
->
x
,
quake
.
epicenter
->
y
);
dist
=
R_PointToDist2
(
0
,
thiscam
->
z
,
xydist
,
quake
.
epicenter
->
z
);
dist
=
R_PointToDist2
(
0
,
thiscam
->
z
,
xydist
,
quake
.
epicenter
->
z
);
}
else
{
}
else
{
...
...
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