diff options
author | Torbjörn Andersson | 2006-05-08 16:04:08 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-08 16:04:08 +0000 |
commit | 816fd39d589833a2976dff369e651f4ea5798be6 (patch) | |
tree | b2a438c3ffdcf6e67fc8df30600cd00ac0624443 /engines/kyra/kyra.cpp | |
parent | 575eb8b775f3d5a0a55a5e7ce41e0f0dd0988807 (diff) | |
download | scummvm-rg350-816fd39d589833a2976dff369e651f4ea5798be6.tar.gz scummvm-rg350-816fd39d589833a2976dff369e651f4ea5798be6.tar.bz2 scummvm-rg350-816fd39d589833a2976dff369e651f4ea5798be6.zip |
Added delay() to delayWithTicks() as well. This function is quite similar to
some of the custom delay loops in script_v1.cpp. Could it be used there?
svn-id: r22394
Diffstat (limited to 'engines/kyra/kyra.cpp')
-rw-r--r-- | engines/kyra/kyra.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp index a6bf71459d..2269f1f751 100644 --- a/engines/kyra/kyra.cpp +++ b/engines/kyra/kyra.cpp @@ -698,6 +698,8 @@ void KyraEngine::delayWithTicks(int ticks) { } if (_skipFlag) break; + if (nextTime - _system->getMillis() >= 10) + delay(10); } } |