bus/nes/multigame.cpp: Fixed typo that turned assignment into an equality comparison. (#9361)

Fixes dancing Pacman walls and corrupt Legend of Kage title screen.
This commit is contained in:
npwoods 2022-03-03 12:17:32 -05:00 committed by GitHub
parent 4a40a60235
commit a146878706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3281,11 +3281,6 @@ void nes_bmc_60311c_device::write_h(offs_t offset, u8 data)
In MAME: Supported.
TODO: Investigate why Legend of Kage has a corrupt
title screen (inverting mirroring bit fixes it but
breaks the rest of the game). Also why are walls in
Pacman glitched?
-------------------------------------------------*/
u8 nes_bmc_ctc12in1_device::read_m(offs_t offset)
@ -3316,7 +3311,7 @@ void nes_bmc_ctc12in1_device::write_h(offs_t offset, u8 data)
break;
}
m_vram_protect == !BIT(m_reg[0], 7) || (offset & 0x6000) == 0x6000;
m_vram_protect = !BIT(m_reg[0], 7) || (offset & 0x6000) == 0x6000;
set_nt_mirroring(BIT(m_reg[0], 5) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT);
}