about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-05-05 02:08:39 +0200
committeroy <Tom_Adams@web.de>2011-05-05 02:08:39 +0200
commit15e1d4f1d68eacefa178bb9eda3bff5b904c45bb (patch)
treed4426e6db390de212e0d2054f496c14dfbe6ca9c /src/game/client
parent8ad6f3d7fc1215a906be83d81c1122212424e49d (diff)
downloadzcatch-15e1d4f1d68eacefa178bb9eda3bff5b904c45bb.tar.gz
zcatch-15e1d4f1d68eacefa178bb9eda3bff5b904c45bb.zip
distinguish [chat] and [teamchat] in console messages. Closes #643
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/components/chat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp
index ee294dc4..f5787483 100644
--- a/src/game/client/components/chat.cpp
+++ b/src/game/client/components/chat.cpp
@@ -292,7 +292,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
 
 		char aBuf[1024];
 		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