close spectator/emoticon menu when changing to team/spectator via bind. Closes #768

This commit is contained in:
oy 2011-07-11 12:02:45 +02:00
parent d28108b8ad
commit f4ce34f01c
2 changed files with 14 additions and 0 deletions

View file

@ -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)

View file

@ -162,6 +162,13 @@ void CSpectator::OnRender()
return;
}
if(!m_pClient->m_Snap.m_SpecInfo.m_Active)
{
m_Active = false;
m_WasActive = false;
return;
}
m_WasActive = true;
m_SelectedSpectatorID = NO_SELECTION;