mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed disabling the xmas hats. closes #1929
This commit is contained in:
parent
b4101dcb59
commit
4f7a52184a
|
@ -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(p == SKINPART_BODY && str_comp(m_aaSkinPartNames[p], "standard"))
|
||||
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);
|
||||
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);
|
||||
if(p == SKINPART_DECORATION && !str_comp(m_aaSkinPartNames[p], "twinbopp"))
|
||||
m_SkinInfo.m_HatSpriteIndex = CSkins::HAT_OFFSET_SIDE + (ClientID%CSkins::HAT_NUM);
|
||||
}
|
||||
m_SkinPartIDs[p] = ID;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue