PEGASUS: Fix possible timer "skip" when resuming

pause/resume need to treat things a bit differently from the normal setRate function. This caused a jump in a timer when resuming from the pause menu in certain cases, though not all the time.

Regression from b50cac637e, which was part of the fix for the lid animations.
This commit is contained in:
Matthew Hoops
2013-07-20 23:06:36 -04:00
parent b79fd7e965
commit 4e9e2f4fea
+2 -2
View File
@@ -115,7 +115,7 @@ void TimeBase::stop() {
void TimeBase::pause() {
if (isRunning() && !_paused) {
_pausedRate = getRate();
stop();
_rate = 0;
_paused = true;
_pauseStart = g_system->getMillis();
}
@@ -123,7 +123,7 @@ void TimeBase::pause() {
void TimeBase::resume() {
if (_paused) {
setRate(_pausedRate);
_rate = _pausedRate;
_paused = false;
if (isRunning())