aboutsummaryrefslogtreecommitdiff
path: root/sword2/controls.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-10-26 15:42:49 +0000
committerTorbjörn Andersson2003-10-26 15:42:49 +0000
commit7c4cc25cec714073d947e6451b4bf76cd53624ef (patch)
tree79a4c235fb9b62e0f49e069d87645f99022b2859 /sword2/controls.cpp
parent2a139049d621479da4898fcb22c742c52d17eac3 (diff)
downloadscummvm-rg350-7c4cc25cec714073d947e6451b4bf76cd53624ef.tar.gz
scummvm-rg350-7c4cc25cec714073d947e6451b4bf76cd53624ef.tar.bz2
scummvm-rg350-7c4cc25cec714073d947e6451b4bf76cd53624ef.zip
Enable the debug console. Actually, what I've done is to adapt the debug
console from the SCUMM engine. I decided that would be easier than to clean up the original console code. Unfortunately there's a bunch of code that I just copied - a pretty lousy form of code-reusal. It'd be nice if the console could be made part of the Engine class, or something like that. Most of the debug commands seem to be working. Some aren't relevant for ScummVM, and some are a bit obscure so I'm not quite sure what they're supposed to be doing. svn-id: r10978
Diffstat (limited to 'sword2/controls.cpp')
-rw-r--r--sword2/controls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sword2/controls.cpp b/sword2/controls.cpp
index 7f48ad8b4d..9ece464b72 100644
--- a/sword2/controls.cpp
+++ b/sword2/controls.cpp
@@ -1335,7 +1335,7 @@ public:
Reset_mouse_list();
if (g_logic.processSession())
- Con_fatal_error("restore 1st cycle failed??");
+ error("restore 1st cycle failed??");
}
}
@@ -1457,7 +1457,7 @@ void Gui::restartControl(void) {
this_screen.scroll_flag = 2;
if (g_logic.processSession())
- Con_fatal_error("restart 1st cycle failed??");
+ error("restart 1st cycle failed??");
// So palette not restored immediately after control panel - we want
// to fade up instead!