diff options
| author | Choupom <andycootlapin@hotmail.fr> | 2011-04-17 22:13:28 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-05-03 18:13:12 +0200 |
| commit | 8e773a55add8f01aff80d770d99ae51705c3208a (patch) | |
| tree | 0e0e98c0636fd6370cce3b7257886e0770e500fa /src/game/client | |
| parent | 7b87cfa68a79117e5e3f8ad82a0c830693d18337 (diff) | |
| download | zcatch-8e773a55add8f01aff80d770d99ae51705c3208a.tar.gz zcatch-8e773a55add8f01aff80d770d99ae51705c3208a.zip | |
show tee pos and vel in tiles in debug hud
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/components/debughud.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/client/components/debughud.cpp b/src/game/client/components/debughud.cpp index 7145705c..6adc61b2 100644 --- a/src/game/client/components/debughud.cpp +++ b/src/game/client/components/debughud.cpp @@ -42,11 +42,11 @@ void CDebugHud::RenderNetCorrections() x = Width-10.0f; char aBuf[128]; - str_format(aBuf, sizeof(aBuf), "%.0f", Velspeed); + str_format(aBuf, sizeof(aBuf), "%.0f", Velspeed/32); float w = TextRender()->TextWidth(0, Fontsize, aBuf, -1); TextRender()->Text(0, x-w, y, Fontsize, aBuf, -1); y += LineHeight; - str_format(aBuf, sizeof(aBuf), "%.0f", Velspeed*Ramp); + str_format(aBuf, sizeof(aBuf), "%.0f", Velspeed/32*Ramp); w = TextRender()->TextWidth(0, Fontsize, aBuf, -1); TextRender()->Text(0, x-w, y, Fontsize, aBuf, -1); y += LineHeight; @@ -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); + str_format(aBuf, sizeof(aBuf), "%d", m_pClient->m_Snap.m_pLocalCharacter->m_X/32); 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); + str_format(aBuf, sizeof(aBuf), "%d", m_pClient->m_Snap.m_pLocalCharacter->m_Y/32); w = TextRender()->TextWidth(0, Fontsize, aBuf, -1); TextRender()->Text(0, x-w, y, Fontsize, aBuf, -1); y += 2*LineHeight; |