mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r19862) -Change: allow "" and " " as arguments meaning nothing and space for the in-game console
This commit is contained in:
parent
e864701693
commit
9440f9f4c4
|
@ -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…
Reference in New Issue