(svn r1067) -Add: [Console] Added comment for scripts (everything behind the # is

ignored) (GeniusDex / sign_de)
This commit is contained in:
truelight 2004-12-13 19:07:54 +00:00
parent 5b2cd5fae0
commit c185adf780
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}