mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #551 from BannZay/emoticon-render-fix
emoticon render fix
This commit is contained in:
commit
12257d065b
|
@ -165,11 +165,12 @@ void CEmoticon::OnRender()
|
|||
|
||||
bool Selected = m_SelectedEyeEmote == i;
|
||||
|
||||
pTeeInfo->m_Size = Selected ? 64.0f : 48.0f;
|
||||
|
||||
float NudgeX = 70.0f * cosf(Angle);
|
||||
float NudgeY = 70.0f * sinf(Angle);
|
||||
|
||||
pTeeInfo->m_Size = Selected ? 64.0f : 48.0f;
|
||||
RenderTools()->RenderTee(CAnimState::GetIdle(), pTeeInfo, i, vec2(-1,0), vec2(Screen.w/2 + NudgeX, Screen.h/2 + NudgeY));
|
||||
pTeeInfo->m_Size = 64.0f;
|
||||
}
|
||||
|
||||
Graphics()->TextureSet(-1);
|
||||
|
|
Loading…
Reference in a new issue