aboutsummaryrefslogtreecommitdiff
path: root/queen/music.cpp
diff options
context:
space:
mode:
authorTravis Howell2004-01-25 16:48:06 +0000
committerTravis Howell2004-01-25 16:48:06 +0000
commit04bb7fff2d09663d27c12e3391514ff305b1ef64 (patch)
treef397fe7e500f2db04ea76bdfc362246514660d7b /queen/music.cpp
parent3f757058f6815e6d9cff706f573e24d8f3d6a515 (diff)
downloadscummvm-rg350-04bb7fff2d09663d27c12e3391514ff305b1ef64.tar.gz
scummvm-rg350-04bb7fff2d09663d27c12e3391514ff305b1ef64.tar.bz2
scummvm-rg350-04bb7fff2d09663d27c12e3391514ff305b1ef64.zip
Check for demo version.
svn-id: r12596
Diffstat (limited to 'queen/music.cpp')
-rw-r--r--queen/music.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/queen/music.cpp b/queen/music.cpp
index 69aeaae393..d3f448540d 100644
--- a/queen/music.cpp
+++ b/queen/music.cpp
@@ -166,7 +166,8 @@ static const byte mt32_to_gm[128] = {
return;
}
- switch (Sound::_tune[tuneList].mode) {
+ int mode = (_numSongs == 40) ? Sound::_tuneDemo[tuneList].mode : Sound::_tune[tuneList].mode;
+ switch (mode) {
//Random loop
case 0:
_randomLoop = true;
@@ -187,8 +188,13 @@ static const byte mt32_to_gm[128] = {
}
int i = 0;
- while(Sound::_tune[tuneList].tuneNum[i])
- queueSong(Sound::_tune[tuneList].tuneNum[i++] - 1);
+ if (_numSongs == 40) {
+ while(Sound::_tuneDemo[tuneList].tuneNum[i])
+ queueSong(Sound::_tuneDemo[tuneList].tuneNum[i++] - 1);
+ } else {
+ while(Sound::_tune[tuneList].tuneNum[i])
+ queueSong(Sound::_tune[tuneList].tuneNum[i++] - 1);
+ }
if (_randomLoop)
_queuePos = randomQueuePos();