tatsumi.cpp: fixed Round Up 5 video priority on map screen after a play [Angelo Salese]

This commit is contained in:
angelosa 2018-05-28 01:35:29 +02:00
parent 06cf8794c6
commit c412f39ec8
2 changed files with 14 additions and 3 deletions

View File

@ -147,7 +147,7 @@ WRITE16_MEMBER(roundup5_state::roundup_v30_z80_w)
WRITE16_MEMBER(roundup5_state::roundup5_control_w)
{
{
COMBINE_DATA(&m_control_word);
if (m_control_word & 0x10)
@ -173,6 +173,9 @@ WRITE16_MEMBER(roundup5_state::roundup5_control_w)
0x0040 : Z80 rom (lower half) mapped to 0x10000
0x0060 : Z80 rom (upper half) mapped to 0x10000
0x0080 : enabled when showing map screen after a play
(switches video priority between text layer and sprites)
0x0100 : watchdog.

View File

@ -1059,8 +1059,16 @@ uint32_t roundup5_state::screen_update_roundup5(screen_device &screen, bitmap_rg
draw_sprites(screen.priority(),cliprect,1,(m_sprite_control_ram[0xe0]&0x1000) ? 0x1000 : 0); // Alpha pass only
draw_road(bitmap,cliprect,screen.priority());
draw_sprites(bitmap,cliprect,0,(m_sprite_control_ram[0xe0]&0x1000) ? 0x1000 : 0); // Full pass
m_tx_layer->draw(screen, bitmap, cliprect, 0,0);
if(m_control_word & 0x80) // enabled on map screen after a play
{
m_tx_layer->draw(screen, bitmap, cliprect, 0,0);
draw_sprites(bitmap,cliprect,0,(m_sprite_control_ram[0xe0]&0x1000) ? 0x1000 : 0); // Full pass
}
else
{
draw_sprites(bitmap,cliprect,0,(m_sprite_control_ram[0xe0]&0x1000) ? 0x1000 : 0); // Full pass
m_tx_layer->draw(screen, bitmap, cliprect, 0,0);
}
return 0;
}