aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorKirben2016-03-01 20:06:48 +1100
committerKirben2016-03-01 20:08:03 +1100
commite5974027ecd75683270190778c8d1a3cfbfc7b29 (patch)
tree6aedebc94a030b636b876fd182f03f491d5e6f53 /engines/cine
parent806fa64d7431a0123c3a77bfb63aa4ff03b7ec37 (diff)
downloadscummvm-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/cine')
-rw-r--r--engines/cine/saveload.cpp5
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);
}