fix display colors

This commit is contained in:
Ilya 2021-08-11 16:10:22 +05:00 committed by BloodWod
parent 49686d81be
commit 1661d51794
2 changed files with 2 additions and 1 deletions

View file

@ -212,7 +212,7 @@ void CNamePlates::RenderNameplatePos(vec2 Position, const CNetObj_PlayerInfo *pP
char aBuf[8];
str_format(aBuf, sizeof(aBuf), "⇢ %d", pCharacter->GetStrongWeakID());
float XOffset = TextRender()->TextWidth(0, FontSize, aBuf, -1, -1.0f) / 2.0f;
if(pPlayerInfo->m_Local || !m_pClient->m_GameWorld.m_WorldConfig.m_IsDDRace)
if(pPlayerInfo->m_Local)
TextRender()->TextColor(rgb);
else if(pCharacter->m_Weak)
{

View file

@ -1001,6 +1001,7 @@ CCharacter::CCharacter(CGameWorld *pGameWorld, int ID, CNetObj_Character *pChar,
m_Alive = true;
m_TeleCheckpoint = 0;
m_StrongWeakID = 0;
m_Weak = true;
// never intilize both to zero
m_Input.m_TargetX = 0;