mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 12:10:48 +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
|
||||
Cmd_ExecuteString (const char *text, cmd_source_t src)
|
||||
{
|
||||
cbuf_t *old = cbuf_active;
|
||||
cbuf_active = cmd_cbuf;
|
||||
|
||||
cmd_source = src;
|
||||
COM_TokenizeString (text, cmd_cbuf->args);
|
||||
Cmd_Command (cmd_cbuf->args);
|
||||
|
||||
cbuf_active = old;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue