fix some sprite overflow stuff for new ppu

This commit is contained in:
qeed 2009-12-18 01:10:26 +00:00
parent 86123d257e
commit 28cc8f5aae
1 changed files with 3 additions and 2 deletions

View File

@ -2338,9 +2338,10 @@ int FCEUX_PPU_Loop(int skip) {
if(yp >= spr[0] && yp < spr[0]+spriteHeight) {
//if we already have maxsprites, then this new one causes an overflow,
//set the flag and bail out.
if(oamcount == maxsprites) {
if(oamcount >= 8 && PPUON) {
PPU_status |= 0x20;
break;
if (maxsprites == 8)
break;
}
//just copy some bytes into the internal sprite buffer