[Scummvm-cvs-logs] CVS: scummvm saveload.cpp,1.57,1.58

Max Horn fingolfin at users.sourceforge.net
Sun Jul 28 08:39:03 CEST 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv25077

Modified Files:
	saveload.cpp 
Log Message:
when loading a save game, reset all mixer channels

Index: saveload.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saveload.cpp,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- saveload.cpp	16 Jul 2002 21:03:13 -0000	1.57
+++ saveload.cpp	28 Jul 2002 15:38:30 -0000	1.58
@@ -618,6 +618,9 @@
 	int var120Backup;
 	int var98Backup;
 
+	if (_mixer && !s->isSaving())
+		_mixer->stop_all();
+
 	if (_current_version == VER_V9)
 		s->saveLoadEntries(this, mainEntriesV9);
 	else





More information about the Scummvm-git-logs mailing list