Changeset - r636:6901c991aa98
[Not reviewed]
master
0 1 0
truelight - 19 years ago 2004-12-13 19:07:54
truelight@openttd.org
(svn r1067) -Add: [Console] Added comment for scripts (everything behind the # is
ignored) (GeniusDex / sign_de)
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
console_cmds.c
Show inline comments
 
@@ -286,8 +286,9 @@ DEF_CONSOLE_CMD(ConExec)
 

	
 
	fgets(cmd, sizeof(cmd), _script_file);
 
	while (!feof(_script_file) && _script_running) {
 
		strtok(cmd, "\r\n");
 
		IConsoleCmdExec(cmd);
 
		strtok(cmd, "\r\n#");
 
		if (strlen(cmd) > 0 && cmd[0] != '#')
 
			IConsoleCmdExec(cmd);
 
		fgets(cmd, sizeof(cmd), _script_file);
 
	}
 

	
0 comments (0 inline, 0 general)