From 0e1eb8bef61f8de2de761ba986f9cbdcb25286e0 Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Sat, 6 Aug 2005 13:50:47 +0000 Subject: [PATCH] print the command line help properly --- ChangeLog | 2 ++ main/inferno.c | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86ce9045..c5e0d945 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * main/automap.c: must_free_canvas isn't used when AUTOMAP_DIRECT_RENDER is defined (whoops) + * main/inferno.c: print the command line help properly + 2005-08-02 Chris Taylor * 2d/bitblt.c, 2d/bitmap.c, 2d/pixel.c, 2d/rect.c, 2d/rle.c, diff --git a/main/inferno.c b/main/inferno.c index bdd28b9a..615fbbe0 100644 --- a/main/inferno.c +++ b/main/inferno.c @@ -1,4 +1,4 @@ -/* $Id: inferno.c,v 1.104 2005-07-30 08:16:13 chris Exp $ */ +/* $Id: inferno.c,v 1.105 2005-08-06 13:50:13 chris Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -189,11 +189,12 @@ void print_commandline_help() while ((end = cfgets(line,LINE_LEN,ifile))) { - // This is the only use of cfgets that needs the CR - *end++ = '\n'; if (have_binary) decode_text_line (line); + // This is the only use of cfgets that needs the CR + strcat(end, "\n"); + if (line[0] == ';') continue; //don't show comments -- 2.39.2