diff options
author | Johannes Schickel | 2008-05-23 22:12:18 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-05-23 22:12:18 +0000 |
commit | 2b24a659a78abc2c3b3c62b7278046ad7607c4f2 (patch) | |
tree | 14e2572bf3ae416301fcc61fe09be392bd295fe2 | |
parent | 9a03a9a66516f01e512ffe790f1b9588dc1d2375 (diff) | |
download | scummvm-rg350-2b24a659a78abc2c3b3c62b7278046ad7607c4f2.tar.gz scummvm-rg350-2b24a659a78abc2c3b3c62b7278046ad7607c4f2.tar.bz2 scummvm-rg350-2b24a659a78abc2c3b3c62b7278046ad7607c4f2.zip |
Fixed KyraEngine_v2::pauseEngineIntern.
svn-id: r32235
-rw-r--r-- | engines/kyra/kyra_v2.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp index 054fab4569..eade621baa 100644 --- a/engines/kyra/kyra_v2.cpp +++ b/engines/kyra/kyra_v2.cpp @@ -99,12 +99,13 @@ void KyraEngine_v2::pauseEngineIntern(bool pause) { KyraEngine_v1::pauseEngineIntern(pause); if (!pause) { + uint32 pausedTime = _system->getMillis() - _pauseStart; + _pauseStart = 0; + for (int i = 0; i < ARRAYSIZE(_sceneSpecialScriptsTimer); ++i) { if (_sceneSpecialScriptsTimer[i]) - _sceneSpecialScriptsTimer[i] += _pauseStart; + _sceneSpecialScriptsTimer[i] += pausedTime; } - - _pauseStart = 0; } else { _pauseStart = _system->getMillis(); } |