diff options
author | Florian Kagerer | 2008-02-18 23:22:22 +0000 |
---|---|---|
committer | Florian Kagerer | 2008-02-18 23:22:22 +0000 |
commit | 896b46323ff2d57f7496b2ec58f0cf606239bf76 (patch) | |
tree | b445374c5a4a551e37654e8f1b7bd61256079165 | |
parent | bcdfe6ade076dc04590a6a8f57c9cdc70f9f13c0 (diff) | |
download | scummvm-rg350-896b46323ff2d57f7496b2ec58f0cf606239bf76.tar.gz scummvm-rg350-896b46323ff2d57f7496b2ec58f0cf606239bf76.tar.bz2 scummvm-rg350-896b46323ff2d57f7496b2ec58f0cf606239bf76.zip |
the script countdown needs to be divided by _ticklength
svn-id: r30904
-rw-r--r-- | engines/kyra/script_v2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |