aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-10-02 01:47:35 +0200
committerJohannes Schickel2011-10-02 01:49:27 +0200
commita3a40c4a6f07618a3d4b958e0b54feb03a1ddb95 (patch)
tree41c197882f01033817e19dbe7bd93d33e5507eda
parentbc60d81ed9e7289b072798a2cddd44f7dc2829b1 (diff)
downloadscummvm-rg350-a3a40c4a6f07618a3d4b958e0b54feb03a1ddb95.tar.gz
scummvm-rg350-a3a40c4a6f07618a3d4b958e0b54feb03a1ddb95.tar.bz2
scummvm-rg350-a3a40c4a6f07618a3d4b958e0b54feb03a1ddb95.zip
KYRA: Fix bumping into a wall AdLib SFX in Lands of Lore.
-rw-r--r--engines/kyra/sound_adlib.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/kyra/sound_adlib.cpp b/engines/kyra/sound_adlib.cpp
index 38682c16b4..b71c2f76db 100644
--- a/engines/kyra/sound_adlib.cpp
+++ b/engines/kyra/sound_adlib.cpp
@@ -790,6 +790,11 @@ void AdLibDriver::executePrograms() {
noteOn(channel);
setupDuration(param, channel);
if (param) {
+ // We need to make sure we are always running the
+ // effects after this. Otherwise some sounds are
+ // wrong. Like the sfx when bumping into a wall in
+ // LoL.
+ result = 1;
channel.dataptr = dataptr;
break;
}