mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Differentiate hook symbol
This commit is contained in:
parent
5d45f061fa
commit
dccbf26ca0
|
@ -209,8 +209,8 @@ void CNamePlates::RenderNameplatePos(vec2 Position, const CNetObj_PlayerInfo *pP
|
|||
if(pCharacter)
|
||||
{
|
||||
YOffset -= FontSize;
|
||||
char aBuf[128];
|
||||
str_format(aBuf, sizeof(aBuf), "%d", pCharacter->GetStrongWeakID());
|
||||
char aBuf[8];
|
||||
str_format(aBuf, sizeof(aBuf), "⇢ %d", pCharacter->GetStrongWeakID());
|
||||
float XOffset = TextRender()->TextWidth(0, FontSize, aBuf, -1, -1.0f) / 2.0f;
|
||||
TextRender()->TextColor(rgb);
|
||||
TextRender()->Text(0, Position.x - XOffset, YOffset, FontSize, aBuf, -1.0f);
|
||||
|
|
Loading…
Reference in a new issue