NES: MMC3: fix some worthless mario hack. i don't like this particularly

This commit is contained in:
goyuken 2013-05-28 20:01:09 +00:00
parent c680c1b7ad
commit 56d7b299de
1 changed files with 2 additions and 1 deletions

View File

@ -332,7 +332,8 @@ namespace BizHawk.Emulation.Consoles.Nintendo
protected virtual int MapCHR(int addr)
{
int bank_1k = Get_CHRBank_1K(addr);
bank_1k &= chr_mask;
// allow NPOT chr sizes
bank_1k %= chr_mask + 1;
addr = (bank_1k << 10) | (addr & 0x3FF);
return addr;
}