From e5974027ecd75683270190778c8d1a3cfbfc7b29 Mon Sep 17 00:00:00 2001 From: Kirben Date: Tue, 1 Mar 2016 20:06:48 +1100 Subject: CINE: Fix restoring background music when loading saved game in DOS CD version of Future Wars. --- engines/cine/saveload.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines') 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); } -- cgit v1.2.3