diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/ppu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ppu.cpp b/source/ppu.cpp index 904bcde..5c7d690 100644 --- a/source/ppu.cpp +++ b/source/ppu.cpp @@ -3246,9 +3246,9 @@ void S9xUpdateJoypads () for (i = 0; i < 5; i++) { - if (IPPU.Joypads [i] & (SNES_LEFT_MASK | SNES_RIGHT_MASK)) + if ((IPPU.Joypads [i] & (SNES_LEFT_MASK | SNES_RIGHT_MASK)) == (SNES_LEFT_MASK | SNES_RIGHT_MASK)) IPPU.Joypads [i] &= ~SNES_RIGHT_MASK; - if (IPPU.Joypads [i] & (SNES_UP_MASK | SNES_DOWN_MASK)) + if ((IPPU.Joypads [i] & (SNES_UP_MASK | SNES_DOWN_MASK)) == (SNES_UP_MASK | SNES_DOWN_MASK)) IPPU.Joypads [i] &= ~SNES_DOWN_MASK; } |