author | truelight |
Mon, 13 Dec 2004 19:07:54 +0000 | |
changeset 636 | 2e51f3726f32 |
parent 635 | 38f9209f5caa |
child 637 | d3c50c368bb3 |
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); }