mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fix display colors
This commit is contained in:
parent
49686d81be
commit
1661d51794
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue