[Scummvm-cvs-logs] SF.net SVN: scummvm: [32063] scummvm/trunk/engines/made

john_doe at users.sourceforge.net john_doe at users.sourceforge.net
Mon May 12 18:10:14 CEST 2008


Revision: 32063
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32063&view=rev
Author:   john_doe
Date:     2008-05-12 09:10:13 -0700 (Mon, 12 May 2008)

Log Message:
-----------
Fixed timer resolution/conversion; now the vulture in the first scene of RtZ lands on the sign, and the thunder sound is in sync with the flash screen effect in the Infocom logo screen.

Modified Paths:
--------------
    scummvm/trunk/engines/made/made.cpp
    scummvm/trunk/engines/made/made.h

Modified: scummvm/trunk/engines/made/made.cpp
===================================================================
--- scummvm/trunk/engines/made/made.cpp	2008-05-12 14:52:18 UTC (rev 32062)
+++ scummvm/trunk/engines/made/made.cpp	2008-05-12 16:10:13 UTC (rev 32063)
@@ -135,14 +135,14 @@
 
 int16 MadeEngine::getTimer(int16 timerNum) {
 	if (timerNum > 0 && timerNum <= ARRAYSIZE(_timers) && _timers[timerNum - 1] != -1)
-		return (_system->getMillis() - _timers[timerNum - 1]) / 60;
+		return (_system->getMillis() - _timers[timerNum - 1]) / kTimerResolution;
 	else
 		return 32000;
 }
 
 void MadeEngine::setTimer(int16 timerNum, int16 value) {
 	if (timerNum > 0 && timerNum <= ARRAYSIZE(_timers))
-		_timers[timerNum - 1] = value * 60;
+		_timers[timerNum - 1] = value * kTimerResolution;
 }
 
 void MadeEngine::resetTimer(int16 timerNum) {

Modified: scummvm/trunk/engines/made/made.h
===================================================================
--- scummvm/trunk/engines/made/made.h	2008-05-12 14:52:18 UTC (rev 32062)
+++ scummvm/trunk/engines/made/made.h	2008-05-12 16:10:13 UTC (rev 32063)
@@ -60,6 +60,8 @@
 	GF_FLOPPY = 1 << 3
 };
 
+const uint32 kTimerResolution = 40;
+
 struct MadeGameDescription;
 
 class ProjectReader;


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