From 2b24a659a78abc2c3b3c62b7278046ad7607c4f2 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 23 May 2008 22:12:18 +0000 Subject: Fixed KyraEngine_v2::pauseEngineIntern. svn-id: r32235 --- engines/kyra/kyra_v2.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/kyra') 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(); } -- cgit v1.2.3