From dbe4fae5b90fb3662629667047b3d42bc4e139d5 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 28 Jan 2004 01:19:15 +0000 Subject: Add some feedback. svn-id: r12646 --- simon/debugger.cpp | 9 +++++++-- 1 file 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 \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 \n"); -- cgit v1.2.3