diff options
author | Kirben | 2016-03-01 20:06:48 +1100 |
---|---|---|
committer | Kirben | 2016-03-01 20:08:03 +1100 |
commit | e5974027ecd75683270190778c8d1a3cfbfc7b29 (patch) | |
tree | 6aedebc94a030b636b876fd182f03f491d5e6f53 /engines | |
parent | 806fa64d7431a0123c3a77bfb63aa4ff03b7ec37 (diff) | |
download | scummvm-rg350-e5974027ecd75683270190778c8d1a3cfbfc7b29.tar.gz scummvm-rg350-e5974027ecd75683270190778c8d1a3cfbfc7b29.tar.bz2 scummvm-rg350-e5974027ecd75683270190778c8d1a3cfbfc7b29.zip |
CINE: Fix restoring background music when loading saved game in DOS CD version of Future Wars.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cine/saveload.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/cine/saveload.cpp b/engines/cine/saveload.cpp index 1f4f286694..dfd3a1f4bc 100644 --- a/engines/cine/saveload.cpp +++ b/engines/cine/saveload.cpp @@ -691,6 +691,11 @@ bool CineEngine::loadPlainSaveFW(Common::SeekableReadStream &in, CineSaveGameFor } if (strlen(bgName)) { + if (g_cine->getGameType() == GType_FW && (g_cine->getFeatures() & GF_CD)) { + char buffer[20]; + removeExtention(buffer, bgName); + g_sound->setBgMusic(atoi(buffer + 1)); + } loadBg(bgName); } |