Cleaning up various debug prints.

This commit is contained in:
Mari the Deer 2023-12-26 11:41:49 +01:00
commit 1a0b5b6d07
7 changed files with 62 additions and 57 deletions

View file

@ -215,6 +215,9 @@ extend Class SWWMStatusBar
{
// ignore outside of levels
if ( gamestate != GS_LEVEL ) return false;
// discard if the console is active
// (helps when using debug commands that print a lot of text)
if ( consolestate != c_up ) return true;
int rprintlevel = printlevel&PRINT_TYPES;
// treat any unrecognized levels as critical messages
// note that checking for PRINT_LOG isn't needed as those are skipped early in the C++ side