aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2004-01-28 01:19:15 +0000
committerTravis Howell2004-01-28 01:19:15 +0000
commitdbe4fae5b90fb3662629667047b3d42bc4e139d5 (patch)
treeffecdcfc9efc0ff1b36a040f40efb48929dc5f6f
parentd7b6160cd27f90e13b76cfc2a2a25f69e740a3b6 (diff)
downloadscummvm-rg350-dbe4fae5b90fb3662629667047b3d42bc4e139d5.tar.gz
scummvm-rg350-dbe4fae5b90fb3662629667047b3d42bc4e139d5.tar.bz2
scummvm-rg350-dbe4fae5b90fb3662629667047b3d42bc4e139d5.zip
Add some feedback.
svn-id: r12646
-rw-r--r--simon/debugger.cpp9
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");