fixed disabling the xmas hats. closes #1929

This commit is contained in:
oy 2018-12-25 09:18:31 +01:00
parent b4101dcb59
commit 4f7a52184a

View file

@ -1371,12 +1371,15 @@ void CGameClient::CClientData::UpdateRenderInfo(CGameClient *pGameClient, int Cl
else
m_SkinPartIDs[p] = ID;
}
else if(m_SkinInfo.m_HatTexture.IsValid())
else
{
if(m_SkinInfo.m_HatTexture.IsValid())
{
if(p == SKINPART_BODY && str_comp(m_aaSkinPartNames[p], "standard"))
m_SkinInfo.m_HatSpriteIndex = CSkins::HAT_OFFSET_SIDE+(ClientID%CSkins::HAT_NUM);
m_SkinInfo.m_HatSpriteIndex = CSkins::HAT_OFFSET_SIDE + (ClientID%CSkins::HAT_NUM);
if(p == SKINPART_DECORATION && !str_comp(m_aaSkinPartNames[p], "twinbopp"))
m_SkinInfo.m_HatSpriteIndex = CSkins::HAT_OFFSET_SIDE+(ClientID%CSkins::HAT_NUM);
m_SkinInfo.m_HatSpriteIndex = CSkins::HAT_OFFSET_SIDE + (ClientID%CSkins::HAT_NUM);
}
m_SkinPartIDs[p] = ID;
}