Fix an oops from the last commit

This commit is contained in:
Lior Halphon 2021-11-26 13:38:52 +02:00
parent f1e5e04198
commit 33090a5cc0
1 changed files with 4 additions and 6 deletions

View File

@ -98,13 +98,11 @@ void GB_timing_sync(GB_gameboy_t *gb)
if (gb->cycles_since_last_sync < LCDC_PERIOD / 3) return;
gb->cycles_since_last_sync = 0;
if (gb->turbo) {
gb->cycles_since_last_sync = 0;
if (gb->update_input_hint_callback) {
gb->update_input_hint_callback(gb);
}
return;
gb->cycles_since_last_sync = 0;
if (gb->update_input_hint_callback) {
gb->update_input_hint_callback(gb);
}
return;
}
#endif