mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
GS: Correct GS to GS direction check and simplify
This commit is contained in:
committed by
lightningterror
parent
d75612e4c9
commit
0244cde98d
@@ -2528,7 +2528,7 @@ void GSState::Move()
|
||||
if (m_env.TRXPOS.DIRX)
|
||||
{
|
||||
// Only allow it to reverse if the destination is behind the source.
|
||||
if (!intersect || (sx <= dx && (sx == dx || ((!m_env.TRXPOS.DIRY && sy >= dy) || (m_env.TRXPOS.DIRY && sy < dy)))))
|
||||
if (!intersect || sx < dx)
|
||||
{
|
||||
sx += w - 1;
|
||||
dx += w - 1;
|
||||
@@ -2538,7 +2538,7 @@ void GSState::Move()
|
||||
if (m_env.TRXPOS.DIRY)
|
||||
{
|
||||
// Only allow it to reverse if the destination is behind the source.
|
||||
if (!intersect || (sy <= dy && (sy == dy || ((!m_env.TRXPOS.DIRX && sx >= dx) || (m_env.TRXPOS.DIRX && sx < dx)))))
|
||||
if (!intersect || sy < dy)
|
||||
{
|
||||
sy += h - 1;
|
||||
dy += h - 1;
|
||||
|
||||
Reference in New Issue
Block a user