summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/namcos2.cpp
diff options
context:
space:
mode:
author David Haywood <28625134+DavidHaywood@users.noreply.github.com>2021-07-16 00:40:04 +0100
committer GitHub <noreply@github.com>2021-07-15 19:40:04 -0400
commit30e547bc5ae1093d76c80ccca8e5f40ffc6cc004 (patch)
treee9afe4bd8b3491a32a0879b75c7238bd218fc8dc /src/mame/drivers/namcos2.cpp
parent5df092b60a99e5ec1f0919f5dc6d78e9fd15bab7 (diff)
some Namco posirq kludges [David Haywood] + Final Lap R sprite position fix [Ryan Holtz] (#8305)
Diffstat (limited to 'src/mame/drivers/namcos2.cpp')
-rw-r--r--src/mame/drivers/namcos2.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/namcos2.cpp b/src/mame/drivers/namcos2.cpp
index ff509d553af..c8092a43b7e 100644
--- a/src/mame/drivers/namcos2.cpp
+++ b/src/mame/drivers/namcos2.cpp
@@ -1760,8 +1760,8 @@ TIMER_DEVICE_CALLBACK_MEMBER(namcos2_state::screen_scanline)
{
m_master_intc->pos_irq_trigger();
m_slave_intc->pos_irq_trigger();
- // TODO: wrong place!
- m_screen->update_partial(param);
+ // TODO: should be when video registers are updated (and/or latched) but that makes things worse
+ m_screen->update_partial(m_update_to_line_before_posirq ? param-1 : param);
}
}
@@ -5488,6 +5488,7 @@ void namcos2_state::init_assaultp()
void namcos2_state::init_burnforc()
{
m_gametype = NAMCOS2_BURNING_FORCE;
+ m_update_to_line_before_posirq = true; // prevents bad line on horizon
}
void namcos2_state::init_cosmogng()
@@ -5680,6 +5681,7 @@ void namcos2_state::init_suzuka8h()
void namcos2_state::init_suzuk8h2()
{
m_gametype = NAMCOS2_SUZUKA_8_HOURS_2;
+ m_update_to_line_before_posirq = true; // needed for tunnels, see 2nd attract demo
}
void namcos2_state::init_valkyrie()