Make emoticon selector reset when you point it in the middle

This commit is contained in:
def 2014-08-16 00:59:50 +02:00
parent a2195cebb0
commit 5f6be4d0bc

View file

@ -124,6 +124,8 @@ void CEmoticon::OnRender()
if (length(m_SelectorMouse) > 110.0f) if (length(m_SelectorMouse) > 110.0f)
m_SelectedEmote = (int)(SelectedAngle / (2*pi) * NUM_EMOTICONS); m_SelectedEmote = (int)(SelectedAngle / (2*pi) * NUM_EMOTICONS);
else
m_SelectedEmote = -1;
CUIRect Screen = *UI()->Screen(); CUIRect Screen = *UI()->Screen();