From 29c74e418b6f3396a54872b7dbdd34650d354c09 Mon Sep 17 00:00:00 2001 From: "Alex W. Jackson" Date: Fri, 21 Feb 2014 00:54:45 +0000 Subject: [PATCH] Fix MT 5245 [Alex Jackson] --- src/mame/includes/opwolf.h | 2 ++ src/mame/machine/opwolf.c | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mame/includes/opwolf.h b/src/mame/includes/opwolf.h index 5297d8dc337..059c553a593 100644 --- a/src/mame/includes/opwolf.h +++ b/src/mame/includes/opwolf.h @@ -44,6 +44,8 @@ public: int m_opwolf_gun_yoffs; /* c-chip */ + emu_timer *m_cchip_timer; + int m_opwolf_region; UINT8 m_current_bank; diff --git a/src/mame/machine/opwolf.c b/src/mame/machine/opwolf.c index 4986c4e8ca6..e297034db17 100644 --- a/src/mame/machine/opwolf.c +++ b/src/mame/machine/opwolf.c @@ -714,9 +714,6 @@ TIMER_CALLBACK_MEMBER(opwolf_state::cchip_timer) // These are set every frame m_cchip_ram[0x64] = 0; m_cchip_ram[0x66] = 0; - - // Pulse the timer - timer_set(attotime::from_hz(60), TIMER_CCHIP); } /************************************* @@ -756,5 +753,6 @@ void opwolf_state::opwolf_cchip_init( ) m_cchip_coins_for_credit[1] = 1; m_cchip_credits_for_coin[1] = 1; - timer_set(attotime::from_hz(60), TIMER_CCHIP); + m_cchip_timer = timer_alloc(TIMER_CCHIP); + m_cchip_timer->adjust(attotime::from_hz(60), 0, attotime::from_hz(60)); }