Vif: Fixed logically dead code (not that it mattered)

-Coverity CID 146826: In vifExecQueue(int): Code can never be reached because of a logical contradiction (CWE-561)
This commit is contained in:
refractionpcsx2 2015-09-26 13:55:50 +01:00
parent 4b63847e04
commit b63590152a
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ __ri void vifExecQueue(int idx)
if (!idx) startcycles = VU0.cycle;
else startcycles = VU1.cycle;
if (!idx) vu0ExecMicro(GetVifX.queued_pc);
else vu1ExecMicro(GetVifX.queued_pc);
if (!idx) vu0ExecMicro(vif0.queued_pc);
else vu1ExecMicro(vif1.queued_pc);
///NOTE: Shadowman 2 has SPS with this, uncommenting the correct code fixes it
if (!idx) { startcycles = ((VU0.cycle-startcycles) + ( vif0ch.qwc - (vif0.vifpacketsize >> 2) )); CPU_INT(VIF_VU0_FINISH, 1/*startcycles * BIAS*/); }