From 896b46323ff2d57f7496b2ec58f0cf606239bf76 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Mon, 18 Feb 2008 23:22:22 +0000 Subject: the script countdown needs to be divided by _ticklength svn-id: r30904 --- engines/kyra/script_v2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/kyra/script_v2.cpp b/engines/kyra/script_v2.cpp index 2df37121b9..49a66e537f 100644 --- a/engines/kyra/script_v2.cpp +++ b/engines/kyra/script_v2.cpp @@ -689,7 +689,7 @@ int KyraEngine_v2::o2_setCountDown(ScriptState *script) { int KyraEngine_v2::o2_getCountDown(ScriptState *script) { debugC(3, kDebugLevelScriptFuncs, "o2_getCountDown(%p)", (const void *)script); uint32 time = _system->getMillis(); - return (time > _scriptCountDown) ? 0 : _scriptCountDown - time; + return (time > _scriptCountDown) ? 0 : (_scriptCountDown - time) / _tickLength; } int KyraEngine_v2::o2_objectChat(ScriptState *script) { -- cgit v1.2.3