mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #750 from d3fault/more-precise-coords-in-debug
Add show more precise coords in debug
This commit is contained in:
commit
716b61df23
|
@ -54,11 +54,11 @@ void CDebugHud::RenderNetCorrections()
|
|||
w = TextRender()->TextWidth(0, Fontsize, aBuf, -1);
|
||||
TextRender()->Text(0, x-w, y, Fontsize, aBuf, -1);
|
||||
y += 2*LineHeight;
|
||||
str_format(aBuf, sizeof(aBuf), "%d", m_pClient->m_Snap.m_pLocalCharacter->m_X/32);
|
||||
str_format(aBuf, sizeof(aBuf), "%.2f", static_cast<float>(m_pClient->m_Snap.m_pLocalCharacter->m_X)/32.0f);
|
||||
w = TextRender()->TextWidth(0, Fontsize, aBuf, -1);
|
||||
TextRender()->Text(0, x-w, y, Fontsize, aBuf, -1);
|
||||
y += LineHeight;
|
||||
str_format(aBuf, sizeof(aBuf), "%d", m_pClient->m_Snap.m_pLocalCharacter->m_Y/32);
|
||||
str_format(aBuf, sizeof(aBuf), "%.2f", static_cast<float>(m_pClient->m_Snap.m_pLocalCharacter->m_Y)/32.0f);
|
||||
w = TextRender()->TextWidth(0, Fontsize, aBuf, -1);
|
||||
TextRender()->Text(0, x-w, y, Fontsize, aBuf, -1);
|
||||
y += 2*LineHeight;
|
||||
|
|
Loading…
Reference in a new issue