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
NY00123
EDuke32-CSRefactor
Commits
00c66956
Commit
00c66956
authored
May 21, 2020
by
Evan Ramos
Browse files
SW: Allow Strafe Left and Right to turn vehicles
parent
04f50a6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/sw/src/game.cpp
View file @
00c66956
...
...
@@ -5275,7 +5275,7 @@ getinput(SW_PACKET *loc, SWBOOL tied)
}
else
{
if
(
BUTTON
(
gamefunc_Turn_Left
))
if
(
BUTTON
(
gamefunc_Turn_Left
)
||
(
BUTTON
(
gamefunc_Strafe_Left
)
&&
pp
->
sop
)
)
{
turnheldtime
+=
synctics
;
if
(
PedanticMode
)
...
...
@@ -5288,7 +5288,7 @@ getinput(SW_PACKET *loc, SWBOOL tied)
else
q16angvel
=
fix16_ssub
(
q16angvel
,
fix16_from_float
(
scaleAdjustmentToInterval
((
turnheldtime
>=
TURBOTURNTIME
)
?
turnamount
:
PREAMBLETURN
)));
}
else
if
(
BUTTON
(
gamefunc_Turn_Right
))
else
if
(
BUTTON
(
gamefunc_Turn_Right
)
||
(
BUTTON
(
gamefunc_Strafe_Right
)
&&
pp
->
sop
)
)
{
turnheldtime
+=
synctics
;
if
(
PedanticMode
)
...
...
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