From 9440f9f4c479b1efbbaf2b7981cc1660d928b176 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 20 May 2010 15:10:33 +0000 Subject: [PATCH] (svn r19862) -Change: allow "" and " " as arguments meaning nothing and space for the in-game console --- src/console.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/console.cpp b/src/console.cpp index 8108e77a45..ff8b68046d 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)) {