Merge pull request #8736 from ChillerDragon/pr_fix_06_chat_skins

Fix old 0.7 skins overwriting 0.6 skins in chat
This commit is contained in:
Dennis Felsing 2024-08-16 06:49:48 +00:00 committed by GitHub
commit 6a4a70fddd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1299,6 +1299,8 @@ void CChat::OnRender()
RenderInfo.m_ColorFeet = Line.m_ColorFeet;
RenderInfo.m_Size = TeeSize;
if(Client()->IsSixup())
{
for(int Part = 0; Part < protocol7::NUM_SKINPARTS; Part++)
{
RenderInfo.m_Sixup.m_aColors[Part] = Line.m_Sixup.m_aColors[Part];
@ -1306,6 +1308,7 @@ void CChat::OnRender()
RenderInfo.m_Sixup.m_HatSpriteIndex = Line.m_Sixup.m_HatSpriteIndex;
RenderInfo.m_Sixup.m_HatTexture = Line.m_Sixup.m_HatTexture;
}
}
float RowHeight = FontSize() + RealMsgPaddingY;
float OffsetTeeY = TeeSize / 2.0f;