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/client/components/chat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/client/components/chat.cpp') diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index 7b64aac7..21fa0e00 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -61,7 +61,7 @@ void CChat::ConChat(IConsole::IResult *pResult, void *pUserData) else if(str_comp(pMode, "team") == 0) ((CChat*)pUserData)->EnableMode(1); else - dbg_msg("console", "expected all or team as mode"); + ((CChat*)pUserData)->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "console", "expected all or team as mode"); } void CChat::ConShowChat(IConsole::IResult *pResult, void *pUserData) @@ -165,8 +165,8 @@ void CChat::AddLine(int ClientId, int Team, const char *pLine) } char aBuf[1024]; - str_format(aBuf, sizeof(aBuf), "[chat]%s%s", m_aLines[m_CurrentLine].m_aName, m_aLines[m_CurrentLine].m_aText); - Console()->Print(aBuf); + str_format(aBuf, sizeof(aBuf), "%s%s", m_aLines[m_CurrentLine].m_aName, m_aLines[m_CurrentLine].m_aText); + Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "chat", aBuf); } // play sound -- cgit 1.4.1