mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
fixed dump_binds command (#806)
This commit is contained in:
parent
baa57830ad
commit
659d66104e
|
@ -169,11 +169,13 @@ void CBinds::ConUnbindAll(IConsole::IResult *pResult, void *pUserData)
|
||||||
void CBinds::ConDumpBinds(IConsole::IResult *pResult, void *pUserData)
|
void CBinds::ConDumpBinds(IConsole::IResult *pResult, void *pUserData)
|
||||||
{
|
{
|
||||||
CBinds *pBinds = (CBinds *)pUserData;
|
CBinds *pBinds = (CBinds *)pUserData;
|
||||||
|
char aBuf[1024];
|
||||||
for(int i = 0; i < KEY_LAST; i++)
|
for(int i = 0; i < KEY_LAST; i++)
|
||||||
{
|
{
|
||||||
if(pBinds->m_aaKeyBindings[i][0] == 0)
|
if(pBinds->m_aaKeyBindings[i][0] == 0)
|
||||||
continue;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue