From f4ce34f01c87e4edbfc085ea60ccec1e3b386f60 Mon Sep 17 00:00:00 2001 From: oy Date: Mon, 11 Jul 2011 12:02:45 +0200 Subject: close spectator/emoticon menu when changing to team/spectator via bind. Closes #768 --- src/game/client/components/emoticon.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game/client/components/emoticon.cpp') diff --git a/src/game/client/components/emoticon.cpp b/src/game/client/components/emoticon.cpp index bedfaafb..b2f48b80 100644 --- a/src/game/client/components/emoticon.cpp +++ b/src/game/client/components/emoticon.cpp @@ -102,6 +102,13 @@ void CEmoticon::OnRender() return; } + if(m_pClient->m_Snap.m_SpecInfo.m_Active) + { + m_Active = false; + m_WasActive = false; + return; + } + m_WasActive = true; if (length(m_SelectorMouse) > 140) -- cgit 1.4.1