mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: Fix inverted EE cycle rate range check
Overclock is now positive and underclock is now negative (it used to be the other way round), so the range check should reflect that. Coverity CID 156245 Bad bit shift operation(BAD SHIFT)
This commit is contained in:
parent
f3f0d743ff
commit
e472713c62
|
@ -1031,7 +1031,7 @@ static u32 scaleblockcycles()
|
|||
s8 cyclerate = EmuConfig.Speedhacks.EECycleRate;
|
||||
u32 scale_cycles = 0;
|
||||
|
||||
if (cyclerate == 0 || lowcycles || cyclerate > 99 || cyclerate < -2)
|
||||
if (cyclerate == 0 || lowcycles || cyclerate < -99 || cyclerate > 2)
|
||||
scale_cycles = s_nBlockCycles >> 3; // Default cycle rate
|
||||
|
||||
else if (cyclerate > 0)
|
||||
|
|
Loading…
Reference in New Issue