mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 03:31:49 +01:00
fixed Menacer/Justifier emulation when shooting outside active screen area (fix gun reload issue with some games)
This commit is contained in:
parent
5dd1876419
commit
b28c86d826
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user