VIF: use outer cast in VU cycle checks

This commit is contained in:
refractionpcsx2
2022-12-29 04:43:12 +00:00
parent 17b052430b
commit 72ecb0fce3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ __fi void vif1SetupTransfer()
__fi void vif1VUFinish()
{
// Sync up VU1 so we don't errantly wait.
while (!THREAD_VU1 && (static_cast<int>(cpuRegs.cycle) - static_cast<int>(VU1.cycle)) > 0 && (VU0.VI[REG_VPU_STAT].UL & 0x100))
while (!THREAD_VU1 && static_cast<int>(cpuRegs.cycle - VU1.cycle) > 0 && (VU0.VI[REG_VPU_STAT].UL & 0x100))
CpuVU1->ExecuteBlock();
if (VU0.VI[REG_VPU_STAT].UL & 0x500)