summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/overdriv.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2017-04-19 18:28:49 +0200
committerGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2017-04-19 18:28:49 +0200
commit53b2406711cde7fb7bcba01ff6ca06b812b6a972 (patch) (github)
treea943c709b943b489cdd2d362305c862282e3a9c6 /src/mame/drivers/overdriv.cpp
parent9c36de15126824f2a160e8c6de37455bb45f01eb (diff)
downloadmame-53b2406711cde7fb7bcba01ff6ca06b812b6a972.tar.bz2
mame-53b2406711cde7fb7bcba01ff6ca06b812b6a972.zip
a few more timer_set removals (nw)
Diffstat (limited to 'src/mame/drivers/overdriv.cpp')
-rw-r--r--src/mame/drivers/overdriv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mame/drivers/overdriv.cpp b/src/mame/drivers/overdriv.cpp
index f0fd002521e..baea234c0d6 100644
--- a/src/mame/drivers/overdriv.cpp
+++ b/src/mame/drivers/overdriv.cpp
@@ -216,7 +216,7 @@ TIMER_CALLBACK_MEMBER(overdriv_state::objdma_end_cb )
WRITE16_MEMBER(overdriv_state::objdma_w)
{
if(data & 0x10)
- machine().scheduler().timer_set(attotime::from_usec(100), timer_expired_delegate(FUNC(overdriv_state::objdma_end_cb), this));
+ m_objdma_end_timer->adjust(attotime::from_usec(100));
m_k053246->k053246_w(space,5,data,mem_mask);
}
@@ -296,6 +296,8 @@ INPUT_PORTS_END
void overdriv_state::machine_start()
{
+ m_objdma_end_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(overdriv_state::objdma_end_cb), this));
+
save_item(NAME(m_cpuB_ctrl));
save_item(NAME(m_sprite_colorbase));
save_item(NAME(m_zoom_colorbase));