mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-08 16:52:16 +00:00
shamblerdimension lart
This commit is contained in:
parent
657baba8a9
commit
6ff7c0516c
1 changed files with 9 additions and 13 deletions
|
@ -71,29 +71,25 @@ Con_Init (const char *plugin_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Con_Interp_f(cvar_t* var)
|
Con_Interp_f (cvar_t* var)
|
||||||
{
|
{
|
||||||
cbuf_interpreter_t* interp = Cmd_GetProvider(var->string);
|
cbuf_interpreter_t* interp = Cmd_GetProvider(var->string);
|
||||||
|
|
||||||
if (con_module && interp)
|
if (con_module && interp) {
|
||||||
{
|
|
||||||
cbuf_t *new;
|
cbuf_t *new;
|
||||||
|
|
||||||
Sys_Printf("Switching to interpreter '%s'\n", var->string);
|
Sys_Printf ("Switching to interpreter '%s'\n", var->string);
|
||||||
|
|
||||||
new = Cbuf_New(interp);
|
new = Cbuf_New (interp);
|
||||||
|
|
||||||
if (con_module->data->console->cbuf)
|
if (con_module->data->console->cbuf) {
|
||||||
{
|
|
||||||
new->down = con_module->data->console->cbuf;
|
new->down = con_module->data->console->cbuf;
|
||||||
new->state = CBUF_STATE_STACK;
|
new->state = CBUF_STATE_STACK;
|
||||||
con_module->data->console->cbuf->up = new;
|
con_module->data->console->cbuf->up = new;
|
||||||
}
|
}
|
||||||
con_module->data->console->cbuf = new;
|
con_module->data->console->cbuf = new;
|
||||||
}
|
} else {
|
||||||
else
|
Sys_Printf ("Unknown interpreter '%s'\n", var->string);
|
||||||
{
|
|
||||||
Sys_Printf("Unknown interpreter '%s'\n", var->string);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue