mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-28 12:11:50 +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 */
|
/* screen Y position */
|
||||||
int y = (input.analog[port][1] + lines_per_frame + input.y_offset) % lines_per_frame;
|
int y = (input.analog[port][1] + lines_per_frame + input.y_offset) % lines_per_frame;
|
||||||
|
|
||||||
/* check if line falls within current gun Y position */
|
/* check if active line falls within current gun Y position */
|
||||||
if (v_counter == y)
|
if ((y == v_counter) && (y < bitmap.viewport.h))
|
||||||
{
|
{
|
||||||
/* HL enabled ? */
|
/* HL enabled ? */
|
||||||
if (io_reg[5] & 0x80)
|
if (io_reg[5] & 0x80)
|
||||||
|
Loading…
Reference in New Issue
Block a user