}
else if (*p == '\n' || *p == '\r' || *p == '\b')
*p++ = ';';
- p++;
+ else
+ p++;
}
#else
strtok(cbd, "\n\r\b");
void
Key_Event (int key, int ascii, qbool down)
{
- cmd_state_t *cmd = &cmd_local;
+ cmd_state_t *cmd = cmd_client;
const char *bind;
qbool q;
keydest_t keydest = key_dest;
{
if(down)
{
- Con_ToggleConsole_f(&cmd_local);
+ Con_ToggleConsole_f(cmd_client);
tbl_keydest[key] = key_void; // esc release should go nowhere (especially not to key_menu or key_game)
}
return;
#endif
}
else
- Con_ToggleConsole_f(&cmd_local);
+ Con_ToggleConsole_f(cmd_client);
}
break;
// (special exemption for german keyboard layouts)
if (con_closeontoggleconsole.integer && bind && !strncmp(bind, "toggleconsole", strlen("toggleconsole")) && (key_consoleactive & KEY_CONSOLEACTIVE_USER) && (con_closeontoggleconsole.integer >= ((ascii != STRING_COLOR_TAG) ? 2 : 3) || key_linepos == 1))
{
- Con_ToggleConsole_f(&cmd_local);
+ Con_ToggleConsole_f(cmd_client);
return;
}