diff options
author | Johannes Schickel | 2008-04-26 23:01:06 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-04-26 23:01:06 +0000 |
commit | 567c7312356d8f9e8207c4d5ef476a8235591fcb (patch) | |
tree | fd1c054f6edec75adc1e09748e21a689ebee6dd3 | |
parent | c0f4b3faa7c1b49e4e0a92703de2a3b6ef5b1bb0 (diff) | |
download | scummvm-rg350-567c7312356d8f9e8207c4d5ef476a8235591fcb.tar.gz scummvm-rg350-567c7312356d8f9e8207c4d5ef476a8235591fcb.tar.bz2 scummvm-rg350-567c7312356d8f9e8207c4d5ef476a8235591fcb.zip |
Added code to play VQA files when entering new scenes.
svn-id: r31743
-rw-r--r-- | engines/kyra/scene_v3.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/engines/kyra/scene_v3.cpp b/engines/kyra/scene_v3.cpp index 8463fc3cb5..529ee0f3e3 100644 --- a/engines/kyra/scene_v3.cpp +++ b/engines/kyra/scene_v3.cpp @@ -116,7 +116,6 @@ void KyraEngine_v3::enterNewScene(uint16 sceneId, int facing, int unk1, int unk2 musicUpdate(0); unloadScene(); musicUpdate(0); - //XXX resetMaskPage(); for (int i = 0; i < 4; ++i) { if (i != _musicSoundChannel && i != _fadeOutMusicChannel) @@ -128,7 +127,27 @@ void KyraEngine_v3::enterNewScene(uint16 sceneId, int facing, int unk1, int unk2 musicUpdate(0); if (queryGameFlag(0x1D9)) { - //XXX VQA code here + char filename[20]; + if (queryGameFlag(0x20D)) { + resetGameFlag(0x20D); + strcpy(filename, "COW1_"); + } else if (queryGameFlag(0x20E)) { + resetGameFlag(0x20E); + strcpy(filename, "COW2_"); + } else if (queryGameFlag(0x20F)) { + resetGameFlag(0x20F); + strcpy(filename, "COW3_"); + } else if (queryGameFlag(0x20C)) { + resetGameFlag(0x20C); + strcpy(filename, "BOAT"); + } else if (queryGameFlag(0x210)) { + resetGameFlag(0x210); + strcpy(filename, "JUNG"); + } + + playVQA(filename); + + resetGameFlag(0x1D9); } musicUpdate(0); |