aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2009-08-03 09:28:06 +0000
committerPaul Gilbert2009-08-03 09:28:06 +0000
commit1cf0eb172732232664f88a16ae6c78061e675f5d (patch)
treee6cc26cedf1574aec1ec2b10eff46cdde37ce5d5 /engines
parent8edc0d09435798cbe8ec83b03c1d0b483a5042e4 (diff)
downloadscummvm-rg350-1cf0eb172732232664f88a16ae6c78061e675f5d.tar.gz
scummvm-rg350-1cf0eb172732232664f88a16ae6c78061e675f5d.tar.bz2
scummvm-rg350-1cf0eb172732232664f88a16ae6c78061e675f5d.zip
Bugfix to correctly reset the music tempo when loading a savegame
svn-id: r43023
Diffstat (limited to 'engines')
-rw-r--r--engines/cruise/sound.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/cruise/sound.cpp b/engines/cruise/sound.cpp
index 92c2ac6256..7ca4246785 100644
--- a/engines/cruise/sound.cpp
+++ b/engines/cruise/sound.cpp
@@ -766,6 +766,10 @@ void PCSoundFxPlayer::doSync(Common::Serializer &s) {
for (int i = 0; i < NUM_CHANNELS; ++i) {
_instrumentsChannelTable[i] = -1;
}
+
+ _numOrders = _sfxData[470];
+ _eventsDelay = (244 - _sfxData[471]) * 100 / 1060;
+ _updateTicksCounter = 0;
}
s.syncAsSint16LE(_songPlayed);