Missing braces

This commit is contained in:
Lior Halphon 2020-03-04 23:34:36 +02:00
parent 409ab2a6d4
commit 1c7351fc85

View File

@ -974,8 +974,9 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles)
}
else if (gb->io_registers[GB_IO_WX] < 166 + GB_is_cgb(gb)) {
if (gb->io_registers[GB_IO_WX] == (uint8_t) (gb->position_in_line + 7) ||
(gb->io_registers[GB_IO_WX] == (uint8_t) (gb->position_in_line + 6) && !gb->wx_just_changed))
should_activate_window = true;
(gb->io_registers[GB_IO_WX] == (uint8_t) (gb->position_in_line + 6) && !gb->wx_just_changed)) {
should_activate_window = true;
}
}
if (should_activate_window) {