summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-06-18 23:30:06 +0200
committer hap <happppp@users.noreply.github.com>2020-06-18 23:30:06 +0200
commit8d9c2d219d35bf31ec81556ec855330fb104e6df (patch)
treea522323e416014f8d322157881eee4c12a370436
parente967ee0da10afe463f3b271f4ae7d10ce6206a67 (diff)
nycaptor: coin inputs active high, fixes high score entry (nw)
-rw-r--r--src/mame/drivers/nycaptor.cpp4
-rw-r--r--src/mame/video/nycaptor.cpp4
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;