diff options
author | Travis Howell | 2004-01-28 01:19:15 +0000 |
---|---|---|
committer | Travis Howell | 2004-01-28 01:19:15 +0000 |
commit | dbe4fae5b90fb3662629667047b3d42bc4e139d5 (patch) | |
tree | ffecdcfc9efc0ff1b36a040f40efb48929dc5f6f | |
parent | d7b6160cd27f90e13b76cfc2a2a25f69e740a3b6 (diff) | |
download | scummvm-rg350-dbe4fae5b90fb3662629667047b3d42bc4e139d5.tar.gz scummvm-rg350-dbe4fae5b90fb3662629667047b3d42bc4e139d5.tar.bz2 scummvm-rg350-dbe4fae5b90fb3662629667047b3d42bc4e139d5.zip |
Add some feedback.
svn-id: r12646
-rw-r--r-- | simon/debugger.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/simon/debugger.cpp b/simon/debugger.cpp index 231ac067ec..516aeb7db0 100644 --- a/simon/debugger.cpp +++ b/simon/debugger.cpp @@ -80,7 +80,9 @@ bool Debugger::Cmd_PlayMusic(int argc, const char **argv) { if (_vm->_game & GF_SIMON2) DebugPrintf("No support for Simon the Sorcerer 2\n"); else if (music < 35) - _vm->loadMusic(music); + _vm->loadMusic(music); + else + DebugPrintf("Music out of range (0 - 34)\n"); } else DebugPrintf("Syntax: music <musicnum>\n"); @@ -90,8 +92,11 @@ bool Debugger::Cmd_PlayMusic(int argc, const char **argv) { bool Debugger::Cmd_PlayVoice(int argc, const char **argv) { if (argc > 1) { uint voice = atoi(argv[1]); - if ((_vm->_game & GF_SIMON2 && voice < 3623) || (!(_vm->_game & GF_SIMON2) && voice < 1997)) + uint range = (_vm->_game & GF_SIMON2) ? 3633 : 1997; + if (voice < range) _vm->_sound->playVoice(voice); + else + DebugPrintf("Voice out of range (0 - %d)\n", range); } else DebugPrintf("Syntax: voice <soundnum>\n"); |