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.

svn-id: r36318
This commit is contained in:
Joost Peters 2009-02-14 00:21:53 +00:00
parent aa82c6fa7b
commit f7b963101f
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ struct MegaSet;
#define SLOW 0
#define FAST 1
#define SPEED_MULTIPLY 8
#define SPEED_MULTIPLY 12
//-
#define SAVE_EXT 1

View File

@ -220,7 +220,7 @@ Common::Error SkyEngine::go() {
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 @@ Common::Error SkyEngine::init() {
_systemVars.systemFlags |= SF_ALLOW_TEXT;
_systemVars.systemFlags |= SF_PLAY_VOCS;
_systemVars.gameSpeed = 50;
_systemVars.gameSpeed = 80;
_skyCompact = new SkyCompact();
_skyText = new Text(_skyDisk, _skyCompact);