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

View File

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