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:
Jonathan Li 2016-01-17 22:17:35 +00:00
parent f3f0d743ff
commit e472713c62
1 changed files with 1 additions and 1 deletions

View File

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