Fixed a regression that made ly_lyc_0_write and ly_lyc_write fail

This commit is contained in:
Lior Halphon 2019-07-12 02:18:25 +03:00
parent 30a58ecd5c
commit f55c254959
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ static void write_high_memory(GB_gameboy_t *gb, uint16_t addr, uint8_t value)
/* These are the states when LY changes, let the display routine call GB_STAT_update for use /* These are the states when LY changes, let the display routine call GB_STAT_update for use
so it correctly handles T-cycle accurate LYC writes */ so it correctly handles T-cycle accurate LYC writes */
if (!GB_is_cgb(gb) || ( if (!GB_is_cgb(gb) || (
gb->display_state != 6 && gb->display_state != 35 &&
gb->display_state != 26 && gb->display_state != 26 &&
gb->display_state != 15 && gb->display_state != 15 &&
gb->display_state != 16)) { gb->display_state != 16)) {