diff options
Diffstat (limited to 'src/mame/video/policetr.c')
-rw-r--r-- | src/mame/video/policetr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/policetr.c b/src/mame/video/policetr.c index efe01f73e21..5b1fda3639c 100644 --- a/src/mame/video/policetr.c +++ b/src/mame/video/policetr.c @@ -282,25 +282,25 @@ READ32_HANDLER( policetr_video_r ) { /* latch 0x00 is player 1's gun X coordinate */ case 0x00: - inputval = ((input_port_read_indexed(machine, 3) & 0xff) * width) >> 8; + inputval = ((input_port_read(machine, "GUNX1") & 0xff) * width) >> 8; inputval += 0x50; return (inputval << 20) | 0x20000000; /* latch 0x01 is player 1's gun Y coordinate */ case 0x01: - inputval = ((input_port_read_indexed(machine, 4) & 0xff) * height) >> 8; + inputval = ((input_port_read(machine, "GUNY1") & 0xff) * height) >> 8; inputval += 0x17; return (inputval << 20); /* latch 0x02 is player 2's gun X coordinate */ case 0x02: - inputval = ((input_port_read_indexed(machine, 5) & 0xff) * width) >> 8; + inputval = ((input_port_read(machine, "GUNX2") & 0xff) * width) >> 8; inputval += 0x50; return (inputval << 20) | 0x20000000; /* latch 0x03 is player 2's gun Y coordinate */ case 0x03: - inputval = ((input_port_read_indexed(machine, 6) & 0xff) * height) >> 8; + inputval = ((input_port_read(machine, "GUNY2") & 0xff) * height) >> 8; inputval += 0x17; return (inputval << 20); |