music works on Simon2

svn-id: r12651
This commit is contained in:
Travis Howell 2004-01-28 03:01:28 +00:00
parent d417394a25
commit 0e9e75da9d

View File

@ -108,12 +108,13 @@ bool Debugger::Cmd_DebugLevel(int argc, const char **argv) {
bool Debugger::Cmd_PlayMusic(int argc, const char **argv) {
if (argc > 1) {
uint music = atoi(argv[1]);
if (_vm->_game & GF_SIMON2)
DebugPrintf("No support for Simon the Sorcerer 2\n");
else if (music <= 34)
_vm->loadMusic(music);
else
DebugPrintf("Music out of range (0 - 34)\n");
uint range = (_vm->_game & GF_SIMON2) ? 93 : 34;
if (music <= range) {
_vm->loadMusic (music);
if (_vm->_game & GF_SIMON2)
_vm->midi.startTrack (0);
} else
DebugPrintf("Music out of range (0 - %d)\n", range);
} else
DebugPrintf("Syntax: music <musicnum>\n");