mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 23:26:34 +00:00
(svn r1067) -Add: [Console] Added comment for scripts (everything behind the # is
ignored) (GeniusDex / sign_de)
This commit is contained in:
parent
5b2cd5fae0
commit
c185adf780
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user