mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
Oops. Fixed a stupid bug that broke having more than one embedded command
in a token.
This commit is contained in:
parent
cb79de3584
commit
fafb014bbe
1 changed files with 2 additions and 3 deletions
|
@ -1321,9 +1321,6 @@ Cmd_ProcessToken (cmd_token_t *token)
|
|||
{
|
||||
int res;
|
||||
|
||||
dstring_clearstr (token->processed);
|
||||
dstring_appendstr (token->processed, token->original->str);
|
||||
|
||||
Cmd_ProcessTags (token->processed);
|
||||
res = Cmd_ProcessEmbedded (token, token->processed);
|
||||
if (res < 0)
|
||||
|
@ -1434,6 +1431,7 @@ Cmd_TokenizeString (const char *text, qboolean legacy)
|
|||
cmd_activebuffer->maxargc++;
|
||||
}
|
||||
dstring_clearstr (cmd_activebuffer->argv[cmd_argc-1]->original);
|
||||
dstring_clearstr (cmd_activebuffer->argv[cmd_argc-1]->processed);
|
||||
/* Remove surrounding quotes or double quotes or braces */
|
||||
quotes = 0;
|
||||
braces = 0;
|
||||
|
@ -1454,6 +1452,7 @@ Cmd_TokenizeString (const char *text, qboolean legacy)
|
|||
cmd_activebuffer->argv[cmd_argc-1]->delim = '{';
|
||||
}
|
||||
dstring_insert (cmd_activebuffer->argv[cmd_argc-1]->original, str + i, len, 0);
|
||||
dstring_insert (cmd_activebuffer->argv[cmd_argc-1]->processed, str + i, len, 0);
|
||||
if (!legacy && !braces && process && text[0] != '|')
|
||||
cmd_activebuffer->argv[cmd_argc-1]->state = cmd_process;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue