Merge pull request #551 from BannZay/emoticon-render-fix

emoticon render fix
This commit is contained in:
Dennis Felsing 2016-09-26 21:01:45 +02:00 committed by GitHub
commit 12257d065b

View file

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