summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
authorsignde <signde@openttd.org>2004-09-16 06:17:50 +0000
committersignde <signde@openttd.org>2004-09-16 06:17:50 +0000
commit25b5a727e855d6bdecef1166cb1a0177261b255c (patch)
treec010bf229e6b05881880c7d437f3d81261b03a6a /console_cmds.c
parentcbcf002a91f0794cd41b256571e708c6e61752bc (diff)
downloadopenttd-25b5a727e855d6bdecef1166cb1a0177261b255c.tar.xz
(svn r268) -Fix: console-command: script command now stops recording correctly
-Fix: network client should not stop sending ready packets anymore [client should not timeout without any reason]
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/console_cmds.c b/console_cmds.c
index 2d336b52e..c9fc837fe 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -182,12 +182,11 @@ DEF_CONSOLE_CMD(ConReturn)
DEF_CONSOLE_CMD(ConScript)
{
extern FILE* _iconsole_output_file;
-
if (_iconsole_output_file!=NULL) {
- if (argc<2) return NULL;
IConsolePrintF(_iconsole_color_default,"file output complete");
fclose(_iconsole_output_file);
} else {
+ if (argc<2) return NULL;
IConsolePrintF(_iconsole_color_default,"file output started to: %s",argv[1]);
_iconsole_output_file = fopen(argv[1],"ab");
if (_iconsole_output_file == NULL) IConsoleError("could not open file");