[Scummvm-cvs-logs] SF.net SVN: scummvm:[36318] scummvm/trunk/engines/sky

joostp at users.sourceforge.net joostp at users.sourceforge.net
Sat Feb 14 01:21:54 CET 2009


Revision: 36318
          http://scummvm.svn.sourceforge.net/scummvm/?rev=36318&view=rev
Author:   joostp
Date:     2009-02-14 00:21:53 +0000 (Sat, 14 Feb 2009)

Log Message:
-----------
Fix 1690836: "BASS: Speed difference"

The original game's delay was 4 50hz ticks = 80ms (1000 / 50 * 4).
Changing gameSpeed to match this makes it run at exactly the same speed as in dosbox.

Modified Paths:
--------------
    scummvm/trunk/engines/sky/control.h
    scummvm/trunk/engines/sky/sky.cpp

Modified: scummvm/trunk/engines/sky/control.h
===================================================================
--- scummvm/trunk/engines/sky/control.h	2009-02-14 00:10:51 UTC (rev 36317)
+++ scummvm/trunk/engines/sky/control.h	2009-02-14 00:21:53 UTC (rev 36318)
@@ -115,7 +115,7 @@
 #define SLOW 0
 #define FAST 1
 
-#define SPEED_MULTIPLY 8
+#define SPEED_MULTIPLY	12
 
 //-
 #define SAVE_EXT	 1

Modified: scummvm/trunk/engines/sky/sky.cpp
===================================================================
--- scummvm/trunk/engines/sky/sky.cpp	2009-02-14 00:10:51 UTC (rev 36317)
+++ scummvm/trunk/engines/sky/sky.cpp	2009-02-14 00:21:53 UTC (rev 36318)
@@ -220,7 +220,7 @@
 		else {
 			delayCount += _systemVars.gameSpeed;
 			int needDelay = delayCount - (int)_system->getMillis();
-			if ((needDelay < 0) || (needDelay > 4 * _systemVars.gameSpeed)) {
+			if ((needDelay < 0) || (needDelay > _systemVars.gameSpeed)) {
 				needDelay = 0;
 				delayCount = _system->getMillis();
 			}
@@ -282,7 +282,7 @@
 		_systemVars.systemFlags |= SF_ALLOW_TEXT;
 
 	_systemVars.systemFlags |= SF_PLAY_VOCS;
-	_systemVars.gameSpeed = 50;
+	_systemVars.gameSpeed = 80;
 
 	_skyCompact = new SkyCompact();
 	_skyText = new Text(_skyDisk, _skyCompact);


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