From 816fd39d589833a2976dff369e651f4ea5798be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Mon, 8 May 2006 16:04:08 +0000 Subject: [PATCH] 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(+) diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp index a6bf71459da..2269f1f7513 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); } }