[Scummvm-cvs-logs] SF.net SVN: scummvm:[36169] scummvm/branches/branch-0-13-0/engines/kyra/ script_hof.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Jan 31 16:21:47 CET 2009


Revision: 36169
          http://scummvm.svn.sourceforge.net/scummvm/?rev=36169&view=rev
Author:   lordhoto
Date:     2009-01-31 15:21:47 +0000 (Sat, 31 Jan 2009)

Log Message:
-----------
Fixed o2_loadSoundFile (backport of r36163 and r36168).

Modified Paths:
--------------
    scummvm/branches/branch-0-13-0/engines/kyra/script_hof.cpp

Modified: scummvm/branches/branch-0-13-0/engines/kyra/script_hof.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/engines/kyra/script_hof.cpp	2009-01-31 15:16:51 UTC (rev 36168)
+++ scummvm/branches/branch-0-13-0/engines/kyra/script_hof.cpp	2009-01-31 15:21:47 UTC (rev 36169)
@@ -403,8 +403,8 @@
 
 int KyraEngine_HoF::o2_loadSoundFile(EMCState *script) {
 	debugC(3, kDebugLevelScriptFuncs, "KyraEngine_HoF::o2_loadSoundFile(%p) (%d)", (const void *)script, stackPos(0));
-	if (_sound->hasSoundFile(stackPos(0)))
-		snd_playTheme(stackPos(0), -1);
+	if (_flags.platform == Common::kPlatformPC)
+		snd_loadSoundFile(stackPos(0));
 	return 0;
 }
 


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