CDROM: Slightly adjust seek timing when on target

Fixes Resident Evil 3 booting.
This commit is contained in:
Stenzek 2023-01-17 18:08:12 +10:00
parent 591e8b5b7a
commit 95306d3362

View file

@ -1259,7 +1259,7 @@ TickCount CDROM::GetTicksForSeek(CDImage::LBA new_lba, bool ignore_speed_change)
if (lba_diff < 32)
{
// Special case: when we land exactly on the right sector, we're already too late.
ticks += ticks_per_sector * std::min<u32>(5u, (lba_diff == 0) ? 5u : lba_diff);
ticks += ticks_per_sector * std::min<u32>(5u, (lba_diff == 0) ? 4u : lba_diff);
}
else
{