[Scummvm-cvs-logs] scummvm master -> e5974027ecd75683270190778c8d1a3cfbfc7b29

Kirben kirben at optusnet.com.au
Tue Mar 1 10:08:50 CET 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e5974027ec CINE: Fix restoring background music when loading saved game in DOS CD version of Future Wars.


Commit: e5974027ecd75683270190778c8d1a3cfbfc7b29
    https://github.com/scummvm/scummvm/commit/e5974027ecd75683270190778c8d1a3cfbfc7b29
Author: Kirben (kirben at optusnet.com.au)
Date: 2016-03-01T20:08:03+11:00

Commit Message:
CINE: Fix restoring background music when loading saved game in DOS CD version of Future Wars.

Changed paths:
    engines/cine/saveload.cpp



diff --git a/engines/cine/saveload.cpp b/engines/cine/saveload.cpp
index 1f4f286..dfd3a1f 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);
 	}
 






More information about the Scummvm-git-logs mailing list