Skip to content

Commit

Permalink
Check for more movement keys in cheat sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Dec 11, 2024
1 parent f1c0f52 commit 4a79c96
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/st_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,12 @@ cheatseq_t cheat_powerup[7] =

static bool movekey(char key)
{
return (key == keyboardright || key == keyboardright2 || key == keyboardleft
|| key == keyboardforward || key == keyboardforward2 || key == keyboardback
|| key == keyboardback2 || key == keyboardstrafeleft || key == keyboardstraferight);
return (key == keyboardright || key == keyboardright2
|| key == keyboardleft || key == keyboardleft2
|| key == keyboardforward || key == keyboardforward2
|| key == keyboardback || key == keyboardback2
|| key == keyboardstrafeleft || key == keyboardstrafeleft2
|| key == keyboardstraferight || key == keyboardstraferight2);
}

static void ST_InitCheats(void)
Expand Down

0 comments on commit 4a79c96

Please sign in to comment.