From cabecb7fa937b5e4efa859ea62722468f91a5089 Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 18 Aug 2010 00:06:00 +0200 Subject: added output level for console print function, categorised the debug messages and merged them into the new functionality. Closes #8 --- src/game/editor/ed_popups.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/editor/ed_popups.cpp') diff --git a/src/game/editor/ed_popups.cpp b/src/game/editor/ed_popups.cpp index 8152c67c..68f804b5 100644 --- a/src/game/editor/ed_popups.cpp +++ b/src/game/editor/ed_popups.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -19,7 +20,7 @@ static int g_UiNumPopups = 0; void CEditor::UiInvokePopupMenu(void *Id, int Flags, float x, float y, float w, float h, int (*pfnFunc)(CEditor *pEditor, CUIRect Rect), void *pExtra) { - dbg_msg("", "invoked"); + Console()->Print(IConsole::OUTPUT_LEVEL_DEBUG, "editor", "invoked"); if(x + w > UI()->Screen()->w) x -= w; if(y + h > UI()->Screen()->h) -- cgit 1.4.1