changeset 15228:ac13e0386b30 draft

(svn r19862) -Change: allow "" and " " as arguments meaning nothing and space for the in-game console
author rubidium <rubidium@openttd.org>
date Thu, 20 May 2010 15:10:33 +0000
parents d0ae89322972
children 85c3d5116952
files src/console.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/console.cpp
+++ b/src/console.cpp
@@ -432,6 +432,10 @@
 			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)) {