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
87beaad8
Commit
87beaad8
authored
Apr 11, 2020
by
NY00123
Browse files
SW: With the input tied to frame rate, disable aiming while the
player is dead, and also disable horizontal aiming while on a ladder.
parent
618e73a8
Changes
1
Show whitespace changes
Inline
Side-by-side
source/sw/src/game.cpp
View file @
87beaad8
...
...
@@ -5273,10 +5273,11 @@ getinput(SW_PACKET *loc, SWBOOL tied)
q16avel
=
fix16_floor
(
q16avel
);
q16horz
=
fix16_floor
(
q16horz
);
}
else
else
if
(
!
TEST
(
pp
->
Flags
,
PF_DEAD
))
{
void
DoPlayerTurn
(
PLAYERp
pp
,
fix16_t
*
pq16ang
,
fix16_t
q16avel
);
void
DoPlayerHorizon
(
PLAYERp
pp
,
fix16_t
*
pq16horiz
,
fix16_t
q16horz
);
if
(
!
TEST
(
pp
->
Flags
,
PF_CLIMBING
))
DoPlayerTurn
(
pp
,
&
pp
->
camq16ang
,
q16avel
);
DoPlayerHorizon
(
pp
,
&
pp
->
camq16horiz
,
q16horz
);
}
...
...
Write
Preview
Supports
Markdown
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