diff options
| author | Tom Adams <Tom_Adams@web.de> | 2010-05-30 00:15:26 +0000 |
|---|---|---|
| committer | Tom Adams <Tom_Adams@web.de> | 2010-05-30 00:15:26 +0000 |
| commit | 659d66104ef654df01a36d08c328ba9e47bd870b (patch) | |
| tree | 4add520dc48d3d6e697bbabede99bf4a5927558c /src/game/client/components | |
| parent | baa57830ad5fb186875532b19d4c043572465881 (diff) | |
| download | zcatch-659d66104ef654df01a36d08c328ba9e47bd870b.tar.gz zcatch-659d66104ef654df01a36d08c328ba9e47bd870b.zip | |
fixed dump_binds command (#806)
Diffstat (limited to 'src/game/client/components')
| -rw-r--r-- | src/game/client/components/binds.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/client/components/binds.cpp b/src/game/client/components/binds.cpp index 533658f2..d08f363d 100644 --- a/src/game/client/components/binds.cpp +++ b/src/game/client/components/binds.cpp @@ -169,11 +169,13 @@ void CBinds::ConUnbindAll(IConsole::IResult *pResult, void *pUserData) void CBinds::ConDumpBinds(IConsole::IResult *pResult, void *pUserData) { CBinds *pBinds = (CBinds *)pUserData; + char aBuf[1024]; for(int i = 0; i < KEY_LAST; i++) { if(pBinds->m_aaKeyBindings[i][0] == 0) continue; - dbg_msg("binds", "%s (%d) = %s", pBinds->Input()->KeyName(i), i, pBinds->m_aaKeyBindings[i]); + str_format(aBuf, sizeof(aBuf), "[binds] %s (%d) = %s", pBinds->Input()->KeyName(i), i, pBinds->m_aaKeyBindings[i]); + pBinds->Console()->Print(aBuf); } } |