distinguish [chat] and [teamchat] in console messages. Closes #643

This commit is contained in:
oy 2011-05-05 02:08:39 +02:00
parent 8ad6f3d7fc
commit 15e1d4f1d6
2 changed files with 2 additions and 2 deletions

View file

@ -292,7 +292,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
char aBuf[1024]; char aBuf[1024];
str_format(aBuf, sizeof(aBuf), "%s%s", m_aLines[m_CurrentLine].m_aName, m_aLines[m_CurrentLine].m_aText); 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); Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, m_aLines[m_CurrentLine].m_Team?"teamchat":"chat", aBuf);
} }
// play sound // play sound

View file

@ -225,7 +225,7 @@ void CGameContext::SendChat(int ChatterClientID, int Team, const char *pText)
str_format(aBuf, sizeof(aBuf), "%d:%d:%s: %s", ChatterClientID, Team, Server()->ClientName(ChatterClientID), pText); str_format(aBuf, sizeof(aBuf), "%d:%d:%s: %s", ChatterClientID, Team, Server()->ClientName(ChatterClientID), pText);
else else
str_format(aBuf, sizeof(aBuf), "*** %s", pText); str_format(aBuf, sizeof(aBuf), "*** %s", pText);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "chat", aBuf); Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, Team!=CHAT_ALL?"teamchat":"chat", aBuf);
if(Team == CHAT_ALL) if(Team == CHAT_ALL)
{ {