summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-20 15:10:33 +0000
committerrubidium <rubidium@openttd.org>2010-05-20 15:10:33 +0000
commit9440f9f4c479b1efbbaf2b7981cc1660d928b176 (patch)
tree5b0c86ade2b396f544f3616476700eb452211e17
parente8647016937eb4a3b4b248fa2951cda414783351 (diff)
downloadopenttd-9440f9f4c479b1efbbaf2b7981cc1660d928b176.tar.xz
(svn r19862) -Change: allow "" and " " as arguments meaning nothing and space for the in-game console
-rw-r--r--src/console.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/console.cpp b/src/console.cpp
index 8108e77a4..ff8b68046 100644
--- a/src/console.cpp
+++ b/src/console.cpp
@@ -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)) {