Win32 - Stop movie at frame x feature - fixed off by 1 error

This commit is contained in:
adelikat 2009-05-04 13:38:41 +00:00
parent a8b61ea489
commit 33d0a03b34
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
02-may-2009 - adelikat - win32 - stop movie at frame x feature - fixed off by 1 error
23-apr-2009 - shinydoofy - sdl - added --ripsubs for converting fm2 movie subtitles to an srt file
15-apr-2009 - shinydoofy - sdl - Lua is optional again, fixed the real issue
14-apr-2009 - punkrockguy - sdl - LUA is NO longer optional, so the SConscripts have been updated to reflect that change. This fixes the mysterious non-working input issue.

View File

@ -434,7 +434,7 @@ bool FCEUI_GetLagged(void)
bool FCEUMOV_ShouldPause(void)
{
if(pauseframe && currFrameCounter == pauseframe)
if(pauseframe && currFrameCounter == (pauseframe-1)) //adelikat: changed to pauseframe -1 to prevent an off by 1 error. THis is probably the hackiest solution but I think it would cause some major restructuring to fix it properly.
{
pauseframe = 0; //only pause once!
return true;