Dmac: Fix incorrect condition for OPH flag hack

Fixes tutorial level in Naruto - Uzumaki Chronicles.
This commit is contained in:
Stenzek 2023-01-13 21:52:23 +10:00 committed by refractionpcsx2
parent b78fca7b91
commit 80c471a939
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ __fi u32 dmacRead32( u32 mem )
if (++counter == 8) if (++counter == 8)
counter = 2; counter = 2;
// Set OPH and APATH from counter, cycling paths and alternating OPH // Set OPH and APATH from counter, cycling paths and alternating OPH
return gifRegs.stat._u32 & (~(7 << 9) | (counter & 1 ? counter << 9 : 0)); return (gifRegs.stat._u32 & ~(7 << 9)) | ((counter & 1) ? (counter << 9) : 0);
} }
return psHu32(mem); return psHu32(mem);