GS: Correct GS to GS direction check and simplify

This commit is contained in:
refractionpcsx2
2026-01-14 14:21:43 +00:00
committed by lightningterror
parent d75612e4c9
commit 0244cde98d

View File

@@ -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;