fix some sprite overflow stuff for new ppu
This commit is contained in:
parent
86123d257e
commit
28cc8f5aae
|
@ -2338,8 +2338,9 @@ int FCEUX_PPU_Loop(int skip) {
|
||||||
if(yp >= spr[0] && yp < spr[0]+spriteHeight) {
|
if(yp >= spr[0] && yp < spr[0]+spriteHeight) {
|
||||||
//if we already have maxsprites, then this new one causes an overflow,
|
//if we already have maxsprites, then this new one causes an overflow,
|
||||||
//set the flag and bail out.
|
//set the flag and bail out.
|
||||||
if(oamcount == maxsprites) {
|
if(oamcount >= 8 && PPUON) {
|
||||||
PPU_status |= 0x20;
|
PPU_status |= 0x20;
|
||||||
|
if (maxsprites == 8)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue