Changeset - r15218:cfb867a486b1
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-05-20 15:10:33
rubidium@openttd.org
(svn r19862) -Change: allow "" and " " as arguments meaning nothing and space for the in-game console
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/console.cpp
Show inline comments
 
@@ -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)) {
0 comments (0 inline, 0 general)