diff options
author | David Haywood <28625134+DavidHaywood@users.noreply.github.com> | 2021-06-09 14:21:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 23:21:17 +1000 |
commit | 15c03e25c637e3d9c990f176ebfdc87f2fcdf0c8 (patch) | |
tree | 26412ad1abf5b25eecc05d9dc3711edafa92c835 | |
parent | fc8e370979b4bb31f53cd85cb8b24cf7c44eef27 (diff) |
galaxold.cpp: Fixed rockclim sprite bank select. (#8164)
-rw-r--r-- | src/mame/video/galaxold.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mame/video/galaxold.cpp b/src/mame/video/galaxold.cpp index 240caa1e34b..cf112754580 100644 --- a/src/mame/video/galaxold.cpp +++ b/src/mame/video/galaxold.cpp @@ -575,7 +575,14 @@ void galaxold_state::rockclim_draw_background(screen_device &screen, bitmap_ind1 void galaxold_state::rockclim_modify_spritecode(uint8_t *spriteram, int *code, int *flipx, int *flipy, int offs) { - if (m_gfxbank[2]) *code|=0x40; + if ((*code & 0x30) == 0x20) + { + if (m_gfxbank[2] & 1) + { + int bank = (((m_gfxbank[0] & 1) << 5) | ((m_gfxbank[1] & 1) << 4)); + *code = (0x40 + bank) | (*code & 0x0f); + } + } } VIDEO_START_MEMBER(galaxold_state,rockclim) |