[Scummvm-cvs-logs] SF.net SVN: scummvm: [30904] scummvm/trunk/engines/kyra/script_v2.cpp
athrxx at users.sourceforge.net
athrxx at users.sourceforge.net
Tue Feb 19 00:22:22 CET 2008
Revision: 30904
http://scummvm.svn.sourceforge.net/scummvm/?rev=30904&view=rev
Author: athrxx
Date: 2008-02-18 15:22:22 -0800 (Mon, 18 Feb 2008)
Log Message:
-----------
the script countdown needs to be divided by _ticklength
Modified Paths:
--------------
scummvm/trunk/engines/kyra/script_v2.cpp
Modified: scummvm/trunk/engines/kyra/script_v2.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_v2.cpp 2008-02-18 23:04:37 UTC (rev 30903)
+++ scummvm/trunk/engines/kyra/script_v2.cpp 2008-02-18 23:22:22 UTC (rev 30904)
@@ -689,7 +689,7 @@
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list