mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Make emoticon selector reset when you point it in the middle
This commit is contained in:
parent
a2195cebb0
commit
5f6be4d0bc
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue