From b9c74ceb1352c8f433cf6bf2c446ae07457c5267 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 11 Aug 2017 17:43:00 +0200 Subject: Start making this suitable for MSVC and C89 --- source/cpuexec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/cpuexec.c') 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) -- cgit v1.2.3