Use CTeeRenderInfo::Reset

To reduce duplicate code and ensure all members are reset.
This commit is contained in:
Robert Müller 2024-03-23 11:56:25 +01:00
parent 96889c8d41
commit 4d6a00d827

View file

@ -2223,13 +2223,7 @@ void CGameClient::CClientData::Reset()
m_Afk = false; m_Afk = false;
m_Paused = false; m_Paused = false;
m_Spec = false; m_Spec = false;
m_SkinInfo.m_BloodColor = ColorRGBA(1, 1, 1); m_SkinInfo.Reset();
m_SkinInfo.m_ColorableRenderSkin.Reset();
m_SkinInfo.m_OriginalRenderSkin.Reset();
m_SkinInfo.m_CustomColoredSkin = false;
m_SkinInfo.m_ColorBody = ColorRGBA(1, 1, 1);
m_SkinInfo.m_ColorFeet = ColorRGBA(1, 1, 1);
m_SkinInfo.m_SkinMetrics.Reset();
m_Solo = false; m_Solo = false;
m_Jetpack = false; m_Jetpack = false;