diff options
author | tron <tron@openttd.org> | 2005-02-17 17:38:17 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-02-17 17:38:17 +0000 |
commit | 73c0f213633d023ff8063766338b4747f48b946d (patch) | |
tree | f4390c2c8b69242cbfe5fdc42d0c527f1f8b6283 /console_cmds.c | |
parent | f7991303e80c08f2b5518db3ca01e869ec78fcb4 (diff) | |
download | openttd-73c0f213633d023ff8063766338b4747f48b946d.tar.xz |
(svn r1883) -Fix: [1109400] Better test if a string actually contains any console command
Diffstat (limited to 'console_cmds.c')
-rw-r--r-- | console_cmds.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/console_cmds.c b/console_cmds.c index adf67f202..ab0364bfd 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -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); } |