diff options
Diffstat (limited to 'src/game/client/components/nameplates.cpp')
| -rw-r--r-- | src/game/client/components/nameplates.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/client/components/nameplates.cpp b/src/game/client/components/nameplates.cpp index 39d081a9..ee67eb82 100644 --- a/src/game/client/components/nameplates.cpp +++ b/src/game/client/components/nameplates.cpp @@ -29,7 +29,7 @@ void CNamePlates::RenderNameplate( if(g_Config.m_ClNameplatesAlways == 0) a = clamp(1-powf(distance(m_pClient->m_pControls->m_TargetPos, Position)/200.0f,16.0f), 0.0f, 1.0f); - const char *pName = m_pClient->m_aClients[pPlayerInfo->m_ClientId].m_aName; + const char *pName = m_pClient->m_aClients[pPlayerInfo->m_ClientID].m_aName; float tw = TextRender()->TextWidth(0, FontSize, pName, -1); TextRender()->TextColor(1.0f, 1.0f, 1.0f, a); @@ -46,7 +46,7 @@ void CNamePlates::RenderNameplate( if(g_Config.m_Debug) // render client id when in debug aswell { char aBuf[128]; - str_format(aBuf, sizeof(aBuf),"%d", pPlayerInfo->m_ClientId); + str_format(aBuf, sizeof(aBuf),"%d", pPlayerInfo->m_ClientID); TextRender()->Text(0, Position.x, Position.y-90, 28.0f, aBuf, -1); } |