From 9ce1c3ea9461c8cac47ce6824f06e1955df7f039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Sat, 4 Aug 2012 09:17:44 +0000 Subject: [PATCH] fixed some incorrect operators and a duplicated game flag reported by Visual Studio Code Analysis (no whatsnew) --- src/emu/sound/mas3507d.c | 2 +- src/mame/drivers/mpu4hw.c | 2 +- src/mame/drivers/progolf.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emu/sound/mas3507d.c b/src/emu/sound/mas3507d.c index 3435d025450..84a47309fdc 100644 --- a/src/emu/sound/mas3507d.c +++ b/src/emu/sound/mas3507d.c @@ -69,7 +69,7 @@ void mas3507d_device::i2c_scl_w(bool line) void mas3507d_device::i2c_nak() { - assert(i2c_bus_state = ACK); + assert(i2c_bus_state == ACK); i2c_bus_state = NAK; } diff --git a/src/mame/drivers/mpu4hw.c b/src/mame/drivers/mpu4hw.c index abfa1693b63..160c9350e43 100644 --- a/src/mame/drivers/mpu4hw.c +++ b/src/mame/drivers/mpu4hw.c @@ -902,7 +902,7 @@ WRITE8_MEMBER(mpu4_state::pia_ic5_porta_w) { led_write_latch(state, data & 0x1f, pia_ic4->a_output(),m_input_strobe); } - else if ((m_led_extender != CARD_A)||(m_led_extender != NO_EXTENDER)) + else if ((m_led_extender != CARD_A)&&(m_led_extender != NO_EXTENDER)) { for(i=0; i<8; i++) { diff --git a/src/mame/drivers/progolf.c b/src/mame/drivers/progolf.c index fa3c3dbc9ee..84871b57cfd 100644 --- a/src/mame/drivers/progolf.c +++ b/src/mame/drivers/progolf.c @@ -532,5 +532,5 @@ static DRIVER_INIT( progolfa ) } /* Maybe progolf is a bootleg? progolfa uses DECO CPU-6 as custom module CPU (the same as Zoar) */ -GAME( 1981, progolf, 0, progolf, progolf, progolf, ROT270, "Data East Corporation", "18 Holes Pro Golf (set 1)", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL ) +GAME( 1981, progolf, 0, progolf, progolf, progolf, ROT270, "Data East Corporation", "18 Holes Pro Golf (set 1)", GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL ) GAME( 1981, progolfa, progolf, progolf, progolf, progolfa, ROT270, "Data East Corporation", "18 Holes Pro Golf (set 2)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL )