aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorTravis Howell2004-01-27 17:22:08 +0000
committerTravis Howell2004-01-27 17:22:08 +0000
commit8f80241571167d0bc120f1c278527b69ae2b15ef (patch)
tree456e5f525b7be6cafbfe101ccb16d6567c0ff844 /simon
parent33bf57c1e7df4e54a64cafd2a4d8a0eece6b7f2e (diff)
downloadscummvm-rg350-8f80241571167d0bc120f1c278527b69ae2b15ef.tar.gz
scummvm-rg350-8f80241571167d0bc120f1c278527b69ae2b15ef.tar.bz2
scummvm-rg350-8f80241571167d0bc120f1c278527b69ae2b15ef.zip
Add safety check.
svn-id: r12638
Diffstat (limited to 'simon')
-rw-r--r--simon/debugger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/simon/debugger.cpp b/simon/debugger.cpp
index dae0a64662..231ac067ec 100644
--- a/simon/debugger.cpp
+++ b/simon/debugger.cpp
@@ -90,7 +90,8 @@ 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]);
- _vm->_sound->playVoice(voice);
+ if ((_vm->_game & GF_SIMON2 && voice < 3623) || (!(_vm->_game & GF_SIMON2) && voice < 1997))
+ _vm->_sound->playVoice(voice);
} else
DebugPrintf("Syntax: voice <soundnum>\n");