Skip to content

Commit

Permalink
NES: Fixed regression in "remove sprite limit" feature that caused so…
Browse files Browse the repository at this point in the history
…me sprites to be missing

Caused by recent accuracy improvements to sprite evaluation
  • Loading branch information
SourMesen committed Dec 10, 2024
1 parent 8ad3434 commit d32763e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/NES/NesPpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ template<class T> void NesPpu<T>::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
Expand Down

0 comments on commit d32763e

Please sign in to comment.