Ensure the speed is reset every time the mode might change.

So we avoid that the next adaptive clock is way off.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2021-05-17 20:19:58 +01:00
parent 8b77575fbd
commit 54403f74c6

View file

@ -565,7 +565,6 @@ namespace sa2
case MODE_RUNNING:
DebugExitDebugger();
SoundCore_SetFade(FADE_IN);
mySpeed.reset();
break;
case MODE_DEBUG:
DebugBegin();
@ -577,6 +576,7 @@ namespace sa2
break;
}
FrameRefreshStatus(DRAW_TITLE);
mySpeed.reset();
}
}