diff options
author | Torbjörn Andersson | 2004-09-23 06:53:46 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-09-23 06:53:46 +0000 |
commit | caed46c816340186e8ef433940bf76e4ebfc4855 (patch) | |
tree | e6280f086bc583b29ca34a3bda3bbe9c043362f4 /saga/scene.cpp | |
parent | c7338cccdb211fde6c6deb45b6168dd97de58989 (diff) | |
download | scummvm-rg350-caed46c816340186e8ef433940bf76e4ebfc4855.tar.gz scummvm-rg350-caed46c816340186e8ef433940bf76e4ebfc4855.tar.bz2 scummvm-rg350-caed46c816340186e8ef433940bf76e4ebfc4855.zip |
Added support for scene music and the music-playing opcode to make the
opening scene a bit nicer.
svn-id: r15241
Diffstat (limited to 'saga/scene.cpp')
-rw-r--r-- | saga/scene.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp index 658d05a7f5..48dab518e5 100644 --- a/saga/scene.cpp +++ b/saga/scene.cpp @@ -962,6 +962,17 @@ int Scene::defaultScene(int param, R_SCENE_INFO *scene_info) { _vm->_script->SThreadCompleteThread(); } + if (_desc.musicRN >= 0) { + event.type = R_ONESHOT_EVENT; + event.code = R_MUSIC_EVENT; + event.param = _desc.musicRN; + event.op = EVENT_PLAY; + event.time = 0; + + _vm->_events->queue(&event); + } else + _vm->_music->stop(); + if (_desc.sceneScriptNum > 0) { R_SCRIPT_THREAD *_sceneScriptThread; |