diff options
| author | 2008-10-12 16:13:43 +0000 | |
|---|---|---|
| committer | 2008-10-12 16:13:43 +0000 | |
| commit | 29e2e3855e5a035d203ff5c33eb1b45e002c1619 (patch) | |
| tree | 706c73c3a76a9eab94c0f86a7094b864402212cf /src | |
| parent | 3518ae84ac0e543f8590eb212c6808eea075db2f (diff) | |
Fix Mantis #00106.
KonamiGX: Tweek le2 gun aiming. Reloading off the top and bottom of the screen works again.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mame/drivers/konamigx.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/mame/drivers/konamigx.c b/src/mame/drivers/konamigx.c index e8e67670c67..dceb82863c6 100644 --- a/src/mame/drivers/konamigx.c +++ b/src/mame/drivers/konamigx.c @@ -873,16 +873,19 @@ static double adc0834_callback( int input ) static READ32_HANDLER( le2_gun_H_r ) { - int p1x = input_port_read(machine, "LIGHT0_X")*287/0xff+22; - int p2x = input_port_read(machine, "LIGHT1_X")*287/0xff+22; + int p1x = input_port_read(machine, "LIGHT0_X")*290/0xff+20; + int p2x = input_port_read(machine, "LIGHT1_X")*290/0xff+20; return (p1x<<16)|p2x; } static READ32_HANDLER( le2_gun_V_r ) { - int p1y = input_port_read(machine, "LIGHT0_Y")*223/0xff+1; - int p2y = input_port_read(machine, "LIGHT1_Y")*223/0xff+1; + int p1y = input_port_read(machine, "LIGHT0_Y")*224/0xff; + int p2y = input_port_read(machine, "LIGHT1_Y")*224/0xff; + + // make "off the bottom" reload too + if (p1y >= 0xdf) p1y = 0; return (p1y<<16)|p2y; } @@ -3353,8 +3356,8 @@ static DRIVER_INIT(konamigx) switch (gameDefs[i].special) { case 1: // LE2 guns - memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xd44000, 0xd44003, 0, 0, le2_gun_H_r ); - memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xd44004, 0xd44007, 0, 0, le2_gun_V_r ); + memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xd44000, 0xd44003, 0, 0, le2_gun_H_r ); + memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xd44004, 0xd44007, 0, 0, le2_gun_V_r ); break; case 2: // tkmmpzdm hack |
