aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-01-16 17:06:40 +0000
committerTorbjörn Andersson2005-01-16 17:06:40 +0000
commiteb2bffd185c2d5f58c54bc77f7e974c0f1b92058 (patch)
tree18cc8f44e22e07680b3529dc2c721cf381c56bd8 /saga
parent34565795e86afe102c46d840e34844447c465521 (diff)
downloadscummvm-rg350-eb2bffd185c2d5f58c54bc77f7e974c0f1b92058.tar.gz
scummvm-rg350-eb2bffd185c2d5f58c54bc77f7e974c0f1b92058.tar.bz2
scummvm-rg350-eb2bffd185c2d5f58c54bc77f7e974c0f1b92058.zip
sfPlayMusic() takes two parameters in IHNM. Since our current
implementation is only right for ITE, disable it for IHNM for now. svn-id: r16572
Diffstat (limited to 'saga')
-rw-r--r--saga/sfuncs.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp
index e068156555..d3dc57858f 100644
--- a/saga/sfuncs.cpp
+++ b/saga/sfuncs.cpp
@@ -1301,12 +1301,19 @@ int Script::SF_eraseDelta(SCRIPTFUNC_PARAMS) {
// Script function #63 (0x3F)
int Script::sfPlayMusic(SCRIPTFUNC_PARAMS) {
- ScriptDataWord param = thread->pop() + 9;
+ if (_vm->getGameType() == GType_ITE) {
+ ScriptDataWord param = thread->pop() + 9;
- if (param >= 9 && param <= 34)
- _vm->_music->play(param);
- else
- _vm->_music->stop();
+ if (param >= 9 && param <= 34)
+ _vm->_music->play(param);
+ else
+ _vm->_music->stop();
+ } else {
+ ScriptDataWord param1 = thread->pop();
+ ScriptDataWord param2 = thread->pop();
+
+ debug(1, "Stub: sfPlayMusic(%d, %d)", param1, param2);
+ }
return SUCCESS;
}