fixed Menacer/Justifier emulation when shooting outside active screen area (fix gun reload issue with some games)

This commit is contained in:
EkeEke 2012-11-22 21:59:00 +01:00
parent 5dd1876419
commit b28c86d826

View File

@ -106,8 +106,8 @@ void lightgun_refresh(int port)
/* screen Y position */
int y = (input.analog[port][1] + lines_per_frame + input.y_offset) % lines_per_frame;
/* check if line falls within current gun Y position */
if (v_counter == y)
/* check if active line falls within current gun Y position */
if ((y == v_counter) && (y < bitmap.viewport.h))
{
/* HL enabled ? */
if (io_reg[5] & 0x80)