mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +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)
|
if(pCharacter)
|
||||||
{
|
{
|
||||||
YOffset -= FontSize;
|
YOffset -= FontSize;
|
||||||
char aBuf[128];
|
char aBuf[8];
|
||||||
str_format(aBuf, sizeof(aBuf), "%d", pCharacter->GetStrongWeakID());
|
str_format(aBuf, sizeof(aBuf), "⇢ %d", pCharacter->GetStrongWeakID());
|
||||||
float XOffset = TextRender()->TextWidth(0, FontSize, aBuf, -1, -1.0f) / 2.0f;
|
float XOffset = TextRender()->TextWidth(0, FontSize, aBuf, -1, -1.0f) / 2.0f;
|
||||||
TextRender()->TextColor(rgb);
|
TextRender()->TextColor(rgb);
|
||||||
TextRender()->Text(0, Position.x - XOffset, YOffset, FontSize, aBuf, -1.0f);
|
TextRender()->Text(0, Position.x - XOffset, YOffset, FontSize, aBuf, -1.0f);
|
||||||
|
|
Loading…
Reference in a new issue