(svn r19862) -Change: allow "" and " " as arguments meaning nothing and space for the in-game console

pull/155/head
rubidium 14 years ago
parent e6bc1150ae
commit 5688b7c68e

@ -432,6 +432,10 @@ void IConsoleCmdExec(const char *cmdstr)
break;
case '"': // Tokens enclosed in "" are one token
longtoken = !longtoken;
if (!foundtoken) {
tokens[t_index++] = &tokenstream[tstream_i];
foundtoken = true;
}
break;
case '\\': // Escape character for ""
if (cmdptr[1] == '"' && tstream_i + 1 < lengthof(tokenstream)) {

Loading…
Cancel
Save