Skip to content

Commit

Permalink
if -> ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
AreaZR committed Oct 3, 2024
1 parent 6a8d384 commit d57c480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ static void ReadKeys(void)
// because it compares the raw key input with the remapped held keys.
// Note that newAndRepeatedKeys is never remapped either.

#if BUGFIX
#ifdef BUGFIX
if (keyInput != 0 && gMain.heldKeysRaw == keyInput)
#else
if (keyInput != 0 && gMain.heldKeys == keyInput)
Expand Down Expand Up @@ -287,7 +287,7 @@ static void ReadKeys(void)

if (JOY_HELD(L_BUTTON))
gMain.heldKeys |= A_BUTTON;
#if BUGFIX
#ifdef BUGFIX
if (JOY_REPEAT(L_BUTTON))
gMain.newAndRepeatedKeys |= A_BUTTON;
#endif
Expand Down

0 comments on commit d57c480

Please sign in to comment.