mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Check if ghost is really used bcs IntsToStr returns weird stuff for 0 integers
This commit is contained in:
parent
2fe7912b1f
commit
bf9e8a4309
|
@ -671,6 +671,8 @@ void CGhost::RefindSkin()
|
|||
{
|
||||
char aSkinName[64];
|
||||
for(auto &Ghost : m_aActiveGhosts)
|
||||
{
|
||||
if(!Ghost.Empty())
|
||||
{
|
||||
IntsToStr(&Ghost.m_Skin.m_Skin0, 6, aSkinName);
|
||||
if(aSkinName[0] != '\0')
|
||||
|
@ -683,6 +685,9 @@ void CGhost::RefindSkin()
|
|||
pRenderInfo->m_SkinMetrics = pSkin->m_Metrics;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!m_CurGhost.Empty())
|
||||
{
|
||||
IntsToStr(&m_CurGhost.m_Skin.m_Skin0, 6, aSkinName);
|
||||
if(aSkinName[0] != '\0')
|
||||
{
|
||||
|
@ -693,4 +698,5 @@ void CGhost::RefindSkin()
|
|||
pRenderInfo->m_ColorableRenderSkin = pSkin->m_ColorableSkin;
|
||||
pRenderInfo->m_SkinMetrics = pSkin->m_Metrics;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue