diff options
author | aiju <devnull@localhost> | 2018-06-13 09:52:41 +0000 |
---|---|---|
committer | aiju <devnull@localhost> | 2018-06-13 09:52:41 +0000 |
commit | 9fbce3b1b4fba5b302aff49b6b769ecdcae59faa (patch) | |
tree | ea153e0344649f0dfd1059fe02f3ce06b651d95b | |
parent | 5d202d345616907d511b46e395226958fe66a2c3 (diff) |
games/gb: attempt at fixing sprite priority
-rw-r--r-- | sys/src/games/gb/ppu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/games/gb/ppu.c b/sys/src/games/gb/ppu.c index 433c12270..f24e9db81 100644 --- a/sys/src/games/gb/ppu.c +++ b/sys/src/games/gb/ppu.c @@ -210,7 +210,8 @@ sprites(void) chr = q->chr; if((chr & ((q->t & SPRXFL) != 0 ? 0x0101 : 0x8080)) != 0 && (attr & TILSPR) == 0 && ((mode & COL) != 0 && (reg[LCDC] & BGPRI) == 0 || - (attr & TILPRI) == 0 && ((q->t & SPRPRI) == 0 || (attr & TILCOL0) != 0))) + (attr & TILCOL0) != 0 || + (attr & TILPRI) == 0 && (q->t & SPRPRI) == 0)) if((q->t & SPRXFL) == 0) picp[x] = pal[q->pal | chr >> 15 | chr >> 6 & 2] | TILSPR << prish; else |