aboutsummaryrefslogtreecommitdiff
path: root/engines/toon
diff options
context:
space:
mode:
authorSylvain Dupont2010-10-12 22:57:03 +0000
committerSylvain Dupont2010-10-12 22:57:03 +0000
commit4c4e821326a3772ad59fee836eabd5175bbb84ca (patch)
tree49c3e5af88a661faff383f5ea1f55e88ec318b90 /engines/toon
parentbe44216e5c1d74879d7843215ce1cd3f488b4db8 (diff)
downloadscummvm-rg350-4c4e821326a3772ad59fee836eabd5175bbb84ca.tar.gz
scummvm-rg350-4c4e821326a3772ad59fee836eabd5175bbb84ca.tar.bz2
scummvm-rg350-4c4e821326a3772ad59fee836eabd5175bbb84ca.zip
TOON: Fixed bug #3085971 with missing "fail" sound sfx
Bug #3085971: "TOON: Missing sfx for invalid Flux request" svn-id: r53260
Diffstat (limited to 'engines/toon')
-rw-r--r--engines/toon/toon.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp
index dd078615cb..7489f5c5d9 100644
--- a/engines/toon/toon.cpp
+++ b/engines/toon/toon.cpp
@@ -1227,7 +1227,9 @@ void ToonEngine::clickEvent() {
if (_currentHotspotItem == -4) {
if (_gameState->_mouseState >= 0) {
if (leftButton)
- handleInventoryOnInventory(0, _gameState->_mouseState);
+ if (!handleInventoryOnInventory(0, _gameState->_mouseState)) {
+ playSoundWrong();
+ }
return;
}
}
@@ -1323,6 +1325,9 @@ void ToonEngine::clickEvent() {
case 11:
sayLines(3, argument);
break;
+ default:
+ playSoundWrong();
+ return;
}
if (result == 3) {