From 513eb4d7bb16c5984aa251f9dc779e56c1318d7c Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 17 Feb 2005 17:38:17 +0000 Subject: (svn r1883) -Fix: [1109400] Better test if a string actually contains any console command --- console_cmds.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'console_cmds.c') 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); } -- cgit v1.2.3-54-g00ecf