diff options
Diffstat (limited to 'src/mame/video/galivan.cpp')
-rw-r--r-- | src/mame/video/galivan.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/video/galivan.cpp b/src/mame/video/galivan.cpp index fb20b4cfef3..c272fe0e480 100644 --- a/src/mame/video/galivan.cpp +++ b/src/mame/video/galivan.cpp @@ -192,12 +192,12 @@ TILE_GET_INFO_MEMBER(galivan_state::ninjemak_get_bg_tile_info) TILE_GET_INFO_MEMBER(galivan_state::ninjemak_get_tx_tile_info) { - int attr = m_videoram[tile_index + 0x400]; - int code = m_videoram[tile_index] | ((attr & 0x03) << 8); - - if(tile_index < 0x12) /* don't draw the NB1414M4 params! TODO: could be a better fix */ - code = attr = 0x01; - + uint16_t index = tile_index; + if (index < 0x12) /* don't draw the NB1414M4 params! TODO: could be a better fix */ + index = 0x12; + + int attr = m_videoram[index + 0x400]; + int code = m_videoram[index] | ((attr & 0x03) << 8); SET_TILE_INFO_MEMBER(0, code, (attr & 0x1c) >> 2, /* seems correct ? */ |