about summary refs log tree commit diff
path: root/src/game/client/components/chat.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-09-07 20:01:51 +0200
committeroy <Tom_Adams@web.de>2010-09-07 20:01:51 +0200
commit6299f6518aa8576fa06f62101aa466c3da528fb1 (patch)
tree41db535607c282bf02b52f505bf8cc620c567366 /src/game/client/components/chat.cpp
parent3baf5223302363139e59691fd3d1c658312facf4 (diff)
downloadzcatch-6299f6518aa8576fa06f62101aa466c3da528fb1.tar.gz
zcatch-6299f6518aa8576fa06f62101aa466c3da528fb1.zip
disable emote selector and chat window in the demo player. Closes #126
Diffstat (limited to 'src/game/client/components/chat.cpp')
-rw-r--r--src/game/client/components/chat.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp
index 167fe181..d082bf78 100644
--- a/src/game/client/components/chat.cpp
+++ b/src/game/client/components/chat.cpp
@@ -100,6 +100,9 @@ bool CChat::OnInput(IInput::CEvent e)
 
 void CChat::EnableMode(int Team)
 {
+	if(Client()->State() == IClient::STATE_DEMOPLAYBACK)
+		return;
+
 	if(m_Mode == MODE_NONE)
 	{
 		if(Team)