Skip to content

Commit

Permalink
Remove unnecessary check for non-zero joylook
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeday0 committed Aug 5, 2024
1 parent 7b3196f commit 52db322
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/doom/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ void G_BuildTiccmd (ticcmd_t* cmd, int maketic)
kbdlookctrl += ticdup;
}
else
if (joystick_look_sensitivity && joylook)
if (joystick_look_sensitivity)
{
if (joylook < 0)
{
Expand Down
2 changes: 1 addition & 1 deletion src/heretic/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, int maketic)
look = -FixedMul(2, joylook);
kbdlookctrl += ticdup;
}
else if (joystick_look_sensitivity && joylook)
else if (joystick_look_sensitivity)
{
if (joylook < 0)
{
Expand Down
2 changes: 1 addition & 1 deletion src/hexen/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, int maketic)
look = -FixedMul(2, joylook);
kbdlookctrl += ticdup;
}
else if (joystick_look_sensitivity && joylook)
else if (joystick_look_sensitivity)
{
if (joylook < 0)
{
Expand Down

0 comments on commit 52db322

Please sign in to comment.