ok rewind really was broken

This commit is contained in:
zeromus 2011-02-23 06:40:04 +00:00
parent c7553397d7
commit 6ac8c1544a
1 changed files with 3 additions and 1 deletions

View File

@ -570,6 +570,7 @@ namespace BizHawk.MultiClient
bool runFrame = false;
runloop_frameadvance = false;
DateTime now = DateTime.Now;
bool suppressCaptureRewind = false;
double frameAdvanceTimestampDelta = (now - FrameAdvanceTimestamp).TotalMilliseconds;
bool frameProgressTimeElapsed = Global.Config.FrameProgressDelayMs < frameAdvanceTimestampDelta;
@ -615,13 +616,14 @@ namespace BizHawk.MultiClient
if (/*Global.Config.RewindEnabled && */Global.ClientControls["Rewind"])
{
Rewind(Global.ClientControls["Fast Forward"] ? 4 : 2);
suppressCaptureRewind = true;
runFrame = true;
}
bool genSound = false;
if (runFrame)
{
CaptureRewindState();
if(!suppressCaptureRewind) CaptureRewindState();
if (!runloop_frameadvance) genSound = true;
else if (!Global.Config.MuteFrameAdvance)
genSound = true;