Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Richard Gobeille
EDuke32
Commits
fa9e9de4
Commit
fa9e9de4
authored
Feb 21, 2021
by
Evan Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Duke3D: Fix avel and horz input getters to use fix16_to_int
parent
b7d4ae3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
source/duke3d/src/gamestructures.cpp
source/duke3d/src/gamestructures.cpp
+4
-12
No files found.
source/duke3d/src/gamestructures.cpp
View file @
fa9e9de4
...
...
@@ -1507,12 +1507,8 @@ int32_t __fastcall VM_GetPlayerInput(int const playerNum, int32_t labelNum)
switch
(
labelNum
)
{
case
INPUT_AVEL
:
labelNum
=
(
i
.
q16avel
>>
16
);
break
;
case
INPUT_HORZ
:
labelNum
=
(
i
.
q16horz
>>
16
);
break
;
case
INPUT_AVEL
:
labelNum
=
fix16_to_int
(
i
.
q16avel
);
break
;
case
INPUT_HORZ
:
labelNum
=
fix16_to_int
(
i
.
q16horz
);
break
;
case
INPUT_Q16AVEL
:
labelNum
=
i
.
q16avel
;
break
;
case
INPUT_Q16HORZ
:
labelNum
=
i
.
q16horz
;
break
;
case
INPUT_FVEL
:
labelNum
=
i
.
fvel
;
break
;
...
...
@@ -1538,12 +1534,8 @@ void __fastcall VM_SetPlayerInput(int const playerNum, int const labelNum, int32
switch
(
labelNum
)
{
case
INPUT_AVEL
:
i
.
q16avel
=
fix16_from_int
(
newValue
);
break
;
case
INPUT_HORZ
:
i
.
q16horz
=
fix16_from_int
(
newValue
);
break
;
case
INPUT_AVEL
:
i
.
q16avel
=
fix16_from_int
(
newValue
);
break
;
case
INPUT_HORZ
:
i
.
q16horz
=
fix16_from_int
(
newValue
);
break
;
case
INPUT_Q16AVEL
:
i
.
q16avel
=
newValue
;
break
;
case
INPUT_Q16HORZ
:
i
.
q16horz
=
newValue
;
break
;
case
INPUT_FVEL
:
i
.
fvel
=
newValue
;
break
;
...
...
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