From d32763e7f8c644d4583f574bd5dee459e785a5b3 Mon Sep 17 00:00:00 2001 From: Sour Date: Tue, 10 Dec 2024 19:11:02 +0900 Subject: [PATCH] NES: Fixed regression in "remove sprite limit" feature that caused some sprites to be missing Caused by recent accuracy improvements to sprite evaluation --- Core/NES/NesPpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/NES/NesPpu.cpp b/Core/NES/NesPpu.cpp index 9134a84d..64845dcd 100644 --- a/Core/NES/NesPpu.cpp +++ b/Core/NES/NesPpu.cpp @@ -1056,7 +1056,7 @@ template void NesPpu::ProcessSpriteEvaluation() if((_secondaryOamAddr & 0x03) == 0) { //Done copying all 4 bytes _spriteInRange = false; - _lastVisibleSpriteAddr = _spriteAddrH * 4; + _lastVisibleSpriteAddr = (_spriteAddrH - 1) * 4; if(_spriteAddrL != 0) { //Normally, if the sprite eval started on a non-multiple-of-4 address, it would