aboutsummaryrefslogtreecommitdiff
path: root/source/cpuexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/cpuexec.c')
-rw-r--r--source/cpuexec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/cpuexec.c b/source/cpuexec.c
index 98e321f..ef96339 100644
--- a/source/cpuexec.c
+++ b/source/cpuexec.c
@@ -366,9 +366,10 @@ void S9xDoHBlankProcessing_SFX()
if (!PPU.ForcedBlanking)
{
+ uint8_t tmp = 0;
+
PPU.OAMAddr = PPU.SavedOAMAddr;
- uint8_t tmp = 0;
if (PPU.OAMPriorityRotation)
tmp = (PPU.OAMAddr & 0xFE) >> 1;
if ((PPU.OAMFlip & 1) || PPU.FirstSprite != tmp)
@@ -499,9 +500,10 @@ void S9xDoHBlankProcessing_NoSFX()
if (!PPU.ForcedBlanking)
{
+ uint8_t tmp = 0;
+
PPU.OAMAddr = PPU.SavedOAMAddr;
- uint8_t tmp = 0;
if (PPU.OAMPriorityRotation)
tmp = (PPU.OAMAddr & 0xFE) >> 1;
if ((PPU.OAMFlip & 1) || PPU.FirstSprite != tmp)