diff options
author | Torbjörn Andersson | 2003-10-26 15:42:49 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-10-26 15:42:49 +0000 |
commit | 7c4cc25cec714073d947e6451b4bf76cd53624ef (patch) | |
tree | 79a4c235fb9b62e0f49e069d87645f99022b2859 /sword2/maketext.cpp | |
parent | 2a139049d621479da4898fcb22c742c52d17eac3 (diff) | |
download | scummvm-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/maketext.cpp')
-rw-r--r-- | sword2/maketext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sword2/maketext.cpp b/sword2/maketext.cpp index 669429415f..1a0584aa4c 100644 --- a/sword2/maketext.cpp +++ b/sword2/maketext.cpp @@ -263,7 +263,7 @@ mem* FontRenderer::buildTextSprite(uint8 *sentence, uint32 fontRes, uint8 pen, L #ifdef _SWORD2_DEBUG if (charPtr->height != char_height) - Con_fatal_error("FONT ERROR: '%c' is not same height as the space", sentence[pos - 1]); + error("FONT ERROR: '%c' is not same height as the space", sentence[pos - 1]); #endif copyChar(charPtr, spritePtr, spriteWidth, pen); @@ -418,7 +418,7 @@ uint32 FontRenderer::buildNewBloc(uint8 *ascii, int16 x, int16 y, uint16 width, #ifdef _SWORD2_DEBUG // we've run out - might as well stop the system if (j == MAX_text_blocs) - Con_fatal_error("Build_new_block ran out of blocks!"); + error("Build_new_block ran out of blocks!"); #endif // make the sprite! @@ -542,7 +542,7 @@ void FontRenderer::killTextBloc(uint32 bloc_number) { _blocList[bloc_number].text_mem = 0; } else { // illegal kill - stop the system - Con_fatal_error("closing closed text bloc number %d", bloc_number); + error("closing closed text bloc number %d", bloc_number); } } |