author | truelight |
Mon, 13 Dec 2004 19:07:54 +0000 | |
changeset 636 | 799b9e2c7eae |
parent 635 | 5a595bc1653f |
child 637 | 7a7f57ccfdcd |
console_cmds.c | file | annotate | diff | comparison | revisions |
--- a/console_cmds.c Mon Dec 13 18:53:59 2004 +0000 +++ b/console_cmds.c Mon Dec 13 19:07:54 2004 +0000 @@ -286,8 +286,9 @@ 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); }