Be verbose about the interpreter changing

This commit is contained in:
Brian Koropoff 2007-03-18 07:12:23 +00:00 committed by Jeff Teunissen
parent 39d8a90336
commit e6e28d3e5e

View file

@ -77,6 +77,7 @@ Con_Interp_f(cvar_t* var)
if (con_module && interp) if (con_module && interp)
{ {
Sys_Printf("Switching to interpreter '%s'\n", var->string);
cbuf_t *new = Cbuf_New(interp); cbuf_t *new = Cbuf_New(interp);
if (con_module->data->console->cbuf) if (con_module->data->console->cbuf)
@ -87,6 +88,10 @@ Con_Interp_f(cvar_t* var)
} }
con_module->data->console->cbuf = new; con_module->data->console->cbuf = new;
} }
else
{
Sys_Printf("Unknown interpreter '%s'\n", var->string);
}
} }
__attribute__ ((visibility ("default"))) __attribute__ ((visibility ("default")))