summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2018-10-19 14:45:54 -0400
committer GitHub <noreply@github.com>2018-10-19 14:45:54 -0400
commit736f08bac424f74c9bf1d1843d3a3ee79f2cccdb (patch)
tree7b0c3dcef70a351c4e4c3cbf65894f49b87b3246
parent1ebe853f65e1d779f40ad6e87174ddcd9a61e9eb (diff)
parentdad6947f8d14964c63d3152233c1937b02120dce (diff)
Merge pull request #4161 from cam900/patch-64
namcofl.cpp : Fix sprite banking
-rw-r--r--src/mame/video/namcofl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/video/namcofl.cpp b/src/mame/video/namcofl.cpp
index a0a1cacd2c6..8e7ec0721bc 100644
--- a/src/mame/video/namcofl.cpp
+++ b/src/mame/video/namcofl.cpp
@@ -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;
}