Differentiate hook symbol

This commit is contained in:
def 2021-01-12 10:22:39 +01:00
parent 5d45f061fa
commit dccbf26ca0

View file

@ -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);