Remove redundant condition
This commit is contained in:
parent
e5454a39b7
commit
b27bd4eed7
@ -1175,8 +1175,7 @@ void GB_apu_write(GB_gameboy_t *gb, uint8_t reg, uint8_t value)
|
|||||||
reads from it. */
|
reads from it. */
|
||||||
if (!GB_is_cgb(gb) &&
|
if (!GB_is_cgb(gb) &&
|
||||||
gb->apu.is_active[GB_WAVE] &&
|
gb->apu.is_active[GB_WAVE] &&
|
||||||
gb->apu.wave_channel.sample_countdown == 0 &&
|
gb->apu.wave_channel.sample_countdown == 0) {
|
||||||
gb->apu.wave_channel.enable) {
|
|
||||||
unsigned offset = ((gb->apu.wave_channel.current_sample_index + 1) >> 1) & 0xF;
|
unsigned offset = ((gb->apu.wave_channel.current_sample_index + 1) >> 1) & 0xF;
|
||||||
|
|
||||||
/* This glitch varies between models and even specific instances:
|
/* This glitch varies between models and even specific instances:
|
||||||
|
Loading…
Reference in New Issue
Block a user