From 8d9c2d219d35bf31ec81556ec855330fb104e6df Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 18 Jun 2020 23:30:06 +0200 Subject: nycaptor: coin inputs active high, fixes high score entry (nw) --- src/mame/drivers/nycaptor.cpp | 4 ++-- src/mame/video/nycaptor.cpp | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mame/drivers/nycaptor.cpp b/src/mame/drivers/nycaptor.cpp index 3bf1177af1e..65c56b8fb36 100644 --- a/src/mame/drivers/nycaptor.cpp +++ b/src/mame/drivers/nycaptor.cpp @@ -575,8 +575,8 @@ static INPUT_PORTS_START( nycaptor ) PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) // IPT_START2 in some similar Taito games (eg: 'flstory') PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_TILT ) - PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) + PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 ) + PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) // "I/O ERROR" if active - code at 0x083d PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) // "I/O ERROR" if active - code at 0x083d diff --git a/src/mame/video/nycaptor.cpp b/src/mame/video/nycaptor.cpp index c7f25c5bb10..0cc4d7f62e3 100644 --- a/src/mame/video/nycaptor.cpp +++ b/src/mame/video/nycaptor.cpp @@ -126,9 +126,7 @@ void nycaptor_state::nycaptor_scrlram_w(offs_t offset, uint8_t data) void nycaptor_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int pri ) { - int i; - - for (i = 0; i < 0x20; i++) + for (int i = 0; i < 0x20; i++) { int pr = m_spriteram[0x9f - i]; int offs = (pr & 0x1f) * 4; -- cgit v1.2.3