mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-04 15:10:50 +00:00
make certain Cmd_ExecuteString calls the command system with an active cbuf
This commit is contained in:
parent
cd8035319d
commit
cb7ecd9f26
1 changed files with 5 additions and 0 deletions
|
@ -609,9 +609,14 @@ Cmd_Init (void)
|
||||||
int
|
int
|
||||||
Cmd_ExecuteString (const char *text, cmd_source_t src)
|
Cmd_ExecuteString (const char *text, cmd_source_t src)
|
||||||
{
|
{
|
||||||
|
cbuf_t *old = cbuf_active;
|
||||||
|
cbuf_active = cmd_cbuf;
|
||||||
|
|
||||||
cmd_source = src;
|
cmd_source = src;
|
||||||
COM_TokenizeString (text, cmd_cbuf->args);
|
COM_TokenizeString (text, cmd_cbuf->args);
|
||||||
Cmd_Command (cmd_cbuf->args);
|
Cmd_Command (cmd_cbuf->args);
|
||||||
|
|
||||||
|
cbuf_active = old;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue