Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Jones
EDuke32
Commits
b26899be
Commit
b26899be
authored
Apr 04, 2020
by
NY00123
Browse files
sw/src/draw.cpp:drawscreen: We can set the pp->si* fields just once,
a bit later.
parent
c2f620ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/sw/src/draw.cpp
View file @
b26899be
...
...
@@ -2345,11 +2345,6 @@ drawscreen(PLAYERp pp)
// with "last valid" code this should never happen
// ASSERT(tsectnum >= 0 && tsectnum <= MAXSECTORS);
pp
->
six
=
tx
;
pp
->
siy
=
ty
;
pp
->
siz
=
tz
-
pp
->
posz
;
pp
->
siang
=
tq16ang
;
if
(
pp
->
sop_riding
||
pp
->
sop_control
)
{
tx
=
pp
->
posx
;
...
...
@@ -2358,13 +2353,13 @@ drawscreen(PLAYERp pp)
tq16ang
=
pp
->
q16ang
;
tsectnum
=
pp
->
cursectnum
;
updatesectorz
(
tx
,
ty
,
tz
,
&
tsectnum
);
pp
->
six
=
tx
;
pp
->
siy
=
ty
;
pp
->
siz
=
tz
-
pp
->
posz
;
pp
->
siang
=
tq16ang
;
}
pp
->
six
=
tx
;
pp
->
siy
=
ty
;
pp
->
siz
=
tz
-
pp
->
posz
;
pp
->
siang
=
tq16ang
;
QuakeViewChange
(
camerapp
,
&
quake_z
,
&
quake_x
,
&
quake_y
,
&
quake_ang
);
VisViewChange
(
camerapp
,
&
g_visibility
);
tz
=
tz
+
quake_z
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment