forked from mirror/OpenTTD
(svn r1883) -Fix: [1109400] Better test if a string actually contains any console command
This commit is contained in:
@@ -611,9 +611,7 @@ DEF_CONSOLE_CMD(ConExec)
|
||||
|
||||
fgets(cmd, sizeof(cmd), _script_file);
|
||||
while (!feof(_script_file) && _script_running) {
|
||||
strtok(cmd, "\r\n#");
|
||||
if (strlen(cmd) > 0 && cmd[0] != '#')
|
||||
IConsoleCmdExec(cmd);
|
||||
IConsoleCmdExec(cmd);
|
||||
fgets(cmd, sizeof(cmd), _script_file);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user