diff options
author | Travis Howell | 2004-01-25 16:48:06 +0000 |
---|---|---|
committer | Travis Howell | 2004-01-25 16:48:06 +0000 |
commit | 04bb7fff2d09663d27c12e3391514ff305b1ef64 (patch) | |
tree | f397fe7e500f2db04ea76bdfc362246514660d7b /queen/music.cpp | |
parent | 3f757058f6815e6d9cff706f573e24d8f3d6a515 (diff) | |
download | scummvm-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.cpp | 12 |
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(); |