shamblerdimension lart

This commit is contained in:
Ragnvald Maartmann-Moe IV 2007-03-23 13:13:26 +00:00 committed by Jeff Teunissen
parent 657baba8a9
commit 6ff7c0516c

View file

@ -75,24 +75,20 @@ 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);
} }
} }