From a50e8f5ca9672988a376b2ca32ac275deee11c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Banaan=20Ananas?= Date: Mon, 7 May 2012 12:09:58 +0000 Subject: [PATCH] updated prev commit (no regressions here tho) --- src/mame/drivers/brkthru.c | 2 +- src/mame/drivers/metlclsh.c | 8 ++++---- src/mame/drivers/tryout.c | 2 +- src/mame/drivers/vicdual.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mame/drivers/brkthru.c b/src/mame/drivers/brkthru.c index c766e216087..584fca50797 100644 --- a/src/mame/drivers/brkthru.c +++ b/src/mame/drivers/brkthru.c @@ -99,7 +99,7 @@ WRITE8_MEMBER(brkthru_state::brkthru_soundlatch_w) INPUT_CHANGED_MEMBER(brkthru_state::coin_inserted) { /* coin insertion causes an IRQ */ - if(newval) + if (newval) device_set_input_line(m_maincpu, 0, ASSERT_LINE); } diff --git a/src/mame/drivers/metlclsh.c b/src/mame/drivers/metlclsh.c index adce7f29345..ba296ae026e 100644 --- a/src/mame/drivers/metlclsh.c +++ b/src/mame/drivers/metlclsh.c @@ -130,7 +130,7 @@ ADDRESS_MAP_END INPUT_CHANGED_MEMBER(metlclsh_state::coin_inserted) { - if(newval != oldval) + if (newval) cputag_set_input_line(machine(), "sub", INPUT_LINE_NMI, ASSERT_LINE); } @@ -177,8 +177,8 @@ static INPUT_PORTS_START( metlclsh ) PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL - PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0) - PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0) PORT_START("DSW") /* c003 */ PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) @@ -197,7 +197,7 @@ static INPUT_PORTS_START( metlclsh ) PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // cpu2 will clr c040 on startup forever - PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, metlclsh_state,coin_inserted, 0) PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_VBLANK("screen") INPUT_PORTS_END diff --git a/src/mame/drivers/tryout.c b/src/mame/drivers/tryout.c index 426f402de48..a0e4b48e296 100644 --- a/src/mame/drivers/tryout.c +++ b/src/mame/drivers/tryout.c @@ -83,7 +83,7 @@ ADDRESS_MAP_END INPUT_CHANGED_MEMBER(tryout_state::coin_inserted) { - if(newval != oldval) + if (newval) cputag_set_input_line(machine(), "maincpu", INPUT_LINE_NMI, ASSERT_LINE); } diff --git a/src/mame/drivers/vicdual.c b/src/mame/drivers/vicdual.c index 3d8d696d647..5f669920693 100644 --- a/src/mame/drivers/vicdual.c +++ b/src/mame/drivers/vicdual.c @@ -89,7 +89,7 @@ CUSTOM_INPUT_MEMBER(vicdual_state::vicdual_read_coin_status) INPUT_CHANGED_MEMBER(vicdual_state::coin_changed) { - if (newval && !oldval) + if (newval) { /* increment the coin counter */ coin_counter_w(machine(), 0, 1);