mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
close spectator/emoticon menu when changing to team/spectator via bind. Closes #768
This commit is contained in:
parent
d28108b8ad
commit
f4ce34f01c
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue