mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Clear Victim Team render info on skin changes
This commit is contained in:
parent
144bb1dd7f
commit
fe20459138
|
@ -396,6 +396,10 @@ void CKillMessages::RefindSkins()
|
|||
|
||||
if(m_aKillmsgs[r].m_VictimID >= 0)
|
||||
{
|
||||
for(auto &VictimRenderInfo : m_aKillmsgs[r].m_VictimRenderInfo)
|
||||
{
|
||||
VictimRenderInfo = {};
|
||||
}
|
||||
const CGameClient::CClientData &Client = GameClient()->m_aClients[m_aKillmsgs[r].m_VictimID];
|
||||
if(Client.m_aSkinName[0] != '\0')
|
||||
m_aKillmsgs[r].m_VictimRenderInfo[0] = Client.m_RenderInfo;
|
||||
|
|
Loading…
Reference in a new issue