aboutsummaryrefslogtreecommitdiff
path: root/kyra/sprites.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2006-01-12 13:16:42 +0000
committerJohannes Schickel2006-01-12 13:16:42 +0000
commit2416254e494d93b52009548f940f7ca28bc4db6d (patch)
treea817a40a50d3a8d1e8657958db5fe7f22c300057 /kyra/sprites.cpp
parentb3826575393d324f703e733a99468b97ccc0456c (diff)
downloadscummvm-rg350-2416254e494d93b52009548f940f7ca28bc4db6d.tar.gz
scummvm-rg350-2416254e494d93b52009548f940f7ca28bc4db6d.tar.bz2
scummvm-rg350-2416254e494d93b52009548f940f7ca28bc4db6d.zip
Implemented 'ingame' sound handling, and named the unknown opcodes from the cd version
and 'implemented' them. svn-id: r19988
Diffstat (limited to 'kyra/sprites.cpp')
-rw-r--r--kyra/sprites.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kyra/sprites.cpp b/kyra/sprites.cpp
index 91563d2ee5..3e9f3e6064 100644
--- a/kyra/sprites.cpp
+++ b/kyra/sprites.cpp
@@ -347,7 +347,7 @@ void Sprites::updateSceneAnims() {
data += 2;
debug(6, "func: Play sound");
debug(6, "Sound index %i", READ_LE_UINT16(data));
- //_engine->snd_playSoundEffect(READ_LE_UINT16(data));
+ _engine->snd_playSoundEffect(READ_LE_UINT16(data));
data += 2;
break;
case 0xFFB1:
@@ -366,8 +366,8 @@ void Sprites::updateSceneAnims() {
data += 2;
debug(6, "Percentage %i", READ_LE_UINT16(data));
rndNr = _rnd.getRandomNumber(100);
- //if (rndNr <= READ_LE_UINT16(data))
- //_engine->snd_playSoundEffect(sound);
+ if (rndNr <= READ_LE_UINT16(data))
+ _engine->snd_playSoundEffect(sound);
data += 2;
break;
case 0xFFA7: