[Scummvm-cvs-logs] SF.net SVN: scummvm: [22126] scummvm/trunk/engines/scumm/plugin.cpp

kirben at users.sourceforge.net kirben at users.sourceforge.net
Sun Apr 23 16:28:02 CEST 2006


Revision: 22126
Author:   kirben
Date:     2006-04-23 16:27:51 -0700 (Sun, 23 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22126&view=rev

Log Message:
-----------
Fix loading music/speech files in HE98+ games

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/plugin.cpp
Modified: scummvm/trunk/engines/scumm/plugin.cpp
===================================================================
--- scummvm/trunk/engines/scumm/plugin.cpp	2006-04-23 23:00:32 UTC (rev 22125)
+++ scummvm/trunk/engines/scumm/plugin.cpp	2006-04-23 23:27:51 UTC (rev 22126)
@@ -812,7 +812,7 @@
 			
 			if (_filenamePattern.genMethod == kGenHEPC) {
 				// For HE >= 98, we already called snprintf above.
-				if (_game.heversion < 98)
+				if (_game.heversion < 98 || room < 0)
 					snprintf(buf, sizeof(buf), "%s.he%c", _filenamePattern.pattern, id);
 			} else {
 				if (id == '3') { // special case for cursors


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list