(svn r19862) -Change: allow "" and " " as arguments meaning nothing and space for the in-game console
This commit is contained in:
@@ -432,6 +432,10 @@ void IConsoleCmdExec(const char *cmdstr)
|
|||||||
break;
|
break;
|
||||||
case '"': // Tokens enclosed in "" are one token
|
case '"': // Tokens enclosed in "" are one token
|
||||||
longtoken = !longtoken;
|
longtoken = !longtoken;
|
||||||
|
if (!foundtoken) {
|
||||||
|
tokens[t_index++] = &tokenstream[tstream_i];
|
||||||
|
foundtoken = true;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case '\\': // Escape character for ""
|
case '\\': // Escape character for ""
|
||||||
if (cmdptr[1] == '"' && tstream_i + 1 < lengthof(tokenstream)) {
|
if (cmdptr[1] == '"' && tstream_i + 1 < lengthof(tokenstream)) {
|
||||||
|
Reference in New Issue
Block a user