diff options
| author | oy <Tom_Adams@web.de> | 2010-09-07 20:01:51 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-09-07 20:01:51 +0200 |
| commit | 6299f6518aa8576fa06f62101aa466c3da528fb1 (patch) | |
| tree | 41db535607c282bf02b52f505bf8cc620c567366 /src/game/client/components | |
| parent | 3baf5223302363139e59691fd3d1c658312facf4 (diff) | |
| download | zcatch-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')
| -rw-r--r-- | src/game/client/components/chat.cpp | 3 | ||||
| -rw-r--r-- | src/game/client/components/emoticon.cpp | 4 |
2 files changed, 6 insertions, 1 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) diff --git a/src/game/client/components/emoticon.cpp b/src/game/client/components/emoticon.cpp index 6d03f88d..cb54dbcd 100644 --- a/src/game/client/components/emoticon.cpp +++ b/src/game/client/components/emoticon.cpp @@ -16,7 +16,9 @@ CEmoticon::CEmoticon() void CEmoticon::ConKeyEmoticon(IConsole::IResult *pResult, void *pUserData) { - ((CEmoticon *)pUserData)->m_Active = pResult->GetInteger(0) != 0; + CEmoticon *pSelf = (CEmoticon *)pUserData; + if(pSelf->Client()->State() != IClient::STATE_DEMOPLAYBACK) + ((CEmoticon *)pUserData)->m_Active = pResult->GetInteger(0) != 0; } void CEmoticon::ConEmote(IConsole::IResult *pResult, void *pUserData) |