aboutsummaryrefslogtreecommitdiff
path: root/engines/composer
diff options
context:
space:
mode:
authorAlyssa Milburn2011-11-04 22:39:44 +0100
committerAlyssa Milburn2011-11-04 22:39:44 +0100
commit6a95d0e8c99fa1b586ffddf1e4dd3dd12491487b (patch)
treea4d549c645fffdedef7aafe4bf665b9ef09ef536 /engines/composer
parent4da2f24866fc1094f46cf9ec5eeba4d939822824 (diff)
downloadscummvm-rg350-6a95d0e8c99fa1b586ffddf1e4dd3dd12491487b.tar.gz
scummvm-rg350-6a95d0e8c99fa1b586ffddf1e4dd3dd12491487b.tar.bz2
scummvm-rg350-6a95d0e8c99fa1b586ffddf1e4dd3dd12491487b.zip
COMPOSER: Fix kOldOpPlayWav.
Diffstat (limited to 'engines/composer')
-rw-r--r--engines/composer/scripting.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/composer/scripting.cpp b/engines/composer/scripting.cpp
index e9e8b7570f..a4c78c3a39 100644
--- a/engines/composer/scripting.cpp
+++ b/engines/composer/scripting.cpp
@@ -816,10 +816,11 @@ bool ComposerEngine::tickOldScript(OldScript *script) {
addSprite(spriteId, script->_id, script->_zorder, spritePos);
break;
case kOldOpPlayWav:
- uint16 wavId;
+ uint16 wavId, prio;
wavId = script->_stream->readUint16LE();
- debug(3, "kOldOpPlayWav(%d)", wavId);
- playWaveForAnim(wavId, 0, false);
+ prio = script->_stream->readUint16LE();
+ debug(3, "kOldOpPlayWav(%d, %d)", wavId, prio);
+ playWaveForAnim(wavId, prio, false);
break;
case kOldOpRunScript:
scriptId = script->_stream->readUint16LE();