[Scummvm-git-logs] scummvm master -> 5eb1da42c3e215ef852c0aae88d94624897c3f9b

sev- sev at scummvm.org
Sun Oct 16 23:26:02 CEST 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:
5eb1da42c3 FULLPIPE: Fix steps sounds


Commit: 5eb1da42c3e215ef852c0aae88d94624897c3f9b
    https://github.com/scummvm/scummvm/commit/5eb1da42c3e215ef852c0aae88d94624897c3f9b
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-10-16T23:25:38+02:00

Commit Message:
FULLPIPE: Fix steps sounds

Changed paths:
    engines/fullpipe/sound.cpp



diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index e7432a6..cd66471 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -139,7 +139,7 @@ bool Sound::load(MfcArchive &file, NGIArchive *archive) {
 }
 
 void Sound::updateVolume() {
-	debug(9, "STUB Sound::updateVolume()");
+	// not needed in our implementation
 }
 
 void Sound::setPanAndVolumeByStaticAni() {
@@ -479,7 +479,8 @@ void global_messageHandler_handleSound(ExCommand *cmd) {
 	Sound *snd = 0;
 
 	for (int i = 0; i < g_fp->_currSoundListCount; i++)
-		snd = g_fp->_currSoundList1[i]->getSoundItemById(cmd->_messageNum);
+		if ((snd = g_fp->_currSoundList1[i]->getSoundItemById(cmd->_messageNum)) != NULL)
+			break;
 
 	if (!snd)
 		return;





More information about the Scummvm-git-logs mailing list