diff options
author | twinaphex | 2017-08-11 17:43:00 +0200 |
---|---|---|
committer | twinaphex | 2017-08-11 17:43:00 +0200 |
commit | b9c74ceb1352c8f433cf6bf2c446ae07457c5267 (patch) | |
tree | afd398fed3d08c81957373be55a12284cb932ab6 /source/cpuexec.c | |
parent | 1aecedc999445e9a27e04f665fd562b576775d08 (diff) | |
download | snes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.gz snes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.bz2 snes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.zip |
Start making this suitable for MSVC and C89
Diffstat (limited to 'source/cpuexec.c')
-rw-r--r-- | source/cpuexec.c | 6 |
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) |