# HG changeset patch # User tron # Date 1108716544 0 # Node ID c69740efce837518a097b9f65407bb0a3a43467c # Parent 17a62e07dde8a0d81704a743bad99b89103f2727 (svn r1887) Stylistic change of ConExec() diff -r 17a62e07dde8 -r c69740efce83 console_cmds.c --- a/console_cmds.c Fri Feb 18 08:36:11 2005 +0000 +++ b/console_cmds.c Fri Feb 18 08:49:04 2005 +0000 @@ -594,18 +594,15 @@ DEF_CONSOLE_CMD(ConExec) { char cmd[1024]; - bool doerror; - if (argc<2) return NULL; + if (argc < 2) return NULL; - doerror = true; _script_file = fopen(argv[1], "r"); if (_script_file == NULL) { - if (argc>2) if (atoi(argv[2])==0) doerror=false; - if (doerror) IConsoleError("script file not found"); + if (argc <= 2 || atoi(argv[2]) != 0) IConsoleError("script file not found"); return NULL; - } + } _script_running = true;