[Scummvm-cvs-logs] SF.net SVN: scummvm:[53260] scummvm/trunk/engines/toon/toon.cpp

sylvaintv at users.sourceforge.net sylvaintv at users.sourceforge.net
Wed Oct 13 00:57:03 CEST 2010


Revision: 53260
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53260&view=rev
Author:   sylvaintv
Date:     2010-10-12 22:57:03 +0000 (Tue, 12 Oct 2010)

Log Message:
-----------
TOON: Fixed bug #3085971 with missing "fail" sound sfx

Bug #3085971: "TOON: Missing sfx for invalid Flux request"

Modified Paths:
--------------
    scummvm/trunk/engines/toon/toon.cpp

Modified: scummvm/trunk/engines/toon/toon.cpp
===================================================================
--- scummvm/trunk/engines/toon/toon.cpp	2010-10-12 22:55:59 UTC (rev 53259)
+++ scummvm/trunk/engines/toon/toon.cpp	2010-10-12 22:57:03 UTC (rev 53260)
@@ -1227,7 +1227,9 @@
 	if (_currentHotspotItem == -4) {
 		if (_gameState->_mouseState >= 0) {
 			if (leftButton)
-				handleInventoryOnInventory(0, _gameState->_mouseState);
+				if (!handleInventoryOnInventory(0, _gameState->_mouseState)) {
+					playSoundWrong();
+				}
 			return;
 		}
 	}
@@ -1323,6 +1325,9 @@
 	case 11:
 		sayLines(3, argument);
 		break;
+	default:
+		playSoundWrong();
+		return;
 	}
 
 	if (result == 3) {


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