From 816fd39d589833a2976dff369e651f4ea5798be6 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 8 May 2006 16:04:08 +0000 Subject: 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 --- engines/kyra/kyra.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') 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); } } -- cgit v1.2.3