aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-05-08 16:04:08 +0000
committerTorbjörn Andersson2006-05-08 16:04:08 +0000
commit816fd39d589833a2976dff369e651f4ea5798be6 (patch)
treeb2a438c3ffdcf6e67fc8df30600cd00ac0624443 /engines
parent575eb8b775f3d5a0a55a5e7ce41e0f0dd0988807 (diff)
downloadscummvm-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')
-rw-r--r--engines/kyra/kyra.cpp2
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);
}
}