Merge pull request #4161 from cam900/patch-64

namcofl.cpp : Fix sprite banking
This commit is contained in:
R. Belmont 2018-10-19 14:45:54 -04:00 committed by GitHub
commit 736f08bac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,8 @@ WRITE32_MEMBER(namcofl_state::namcofl_spritebank_w)
int namcofl_state::FLobjcode2tile(int code)
{
if ((code & 0x2000) && (m_sprbank & 2)) { code += 0x4000; }
if (BIT(code, 13))
return (m_sprbank << 13) | (code & 0x1fff);
return code;
}