diff options
author | Lars Skovlund | 2011-01-21 19:33:36 +0000 |
---|---|---|
committer | Lars Skovlund | 2011-01-21 19:33:36 +0000 |
commit | 74f8462a7bc61f85614e3e024df6a7f356cbbc43 (patch) | |
tree | 47868d08765f6238c58a0a56f6823bb31c010ebd /engines/sci/engine | |
parent | a7df59a0ac72bad5823e35b1bd765658d56a2b50 (diff) | |
download | scummvm-rg350-74f8462a7bc61f85614e3e024df6a7f356cbbc43.tar.gz scummvm-rg350-74f8462a7bc61f85614e3e024df6a7f356cbbc43.tar.bz2 scummvm-rg350-74f8462a7bc61f85614e3e024df6a7f356cbbc43.zip |
SCI: Fix GK1 breaking into the debugger when watching the intro
svn-id: r55386
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kmisc.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index d4ca3286e2..6b5aca4503 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -176,9 +176,12 @@ reg_t kFlushResources(EngineState *s, int argc, reg_t *argv) { } reg_t kSetDebug(EngineState *s, int argc, reg_t *argv) { - debug("Debug mode activated"); + if (g_sci->getGameId() != GID_GK1) { + debug("Debug mode activated"); + + g_sci->getDebugger()->attach(); + } - g_sci->getDebugger()->attach(); return s->r_acc; } |