X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fcdrom.c;h=487dfb8d242b28387b0507b4856413106bf1ee01;hp=3d380785711353edf2a1bad6c3d45ac0c332dbf7;hb=415213c97e0e35ea392114c71d8a10371c64d6fd;hpb=af486d6e6500b327e3fe34848848f6331ef777b2 diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 3d380785..487dfb8d 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -545,7 +545,8 @@ static void cdrPlayInterrupt_Autopause() static int cdrSeekTime(unsigned char *target) { - int seekTime = abs(msf2sec(cdr.SetSectorPlay) - msf2sec(target)) * (cdReadTime / 200); + int diff = msf2sec(cdr.SetSectorPlay) - msf2sec(target); + int seekTime = abs(diff) * (cdReadTime / 200); /* * Gameblabla : * It was originally set to 1000000 for Driver, however it is not high enough for Worms Pinball