From 695e0dc38ec39040d5dc458baead96ae9363e40e Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Mon, 7 Apr 2003 23:30:46 +0000 Subject: [PATCH] don't die on text not found --- ChangeLog | 2 ++ main/text.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 706f842d..645ecb4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2003-04-07 Bradley Bell + * main/text.c: don't die on text not found + * main/inferno.c: print some useful info if hog not found, allow -help to work if no text available diff --git a/main/text.c b/main/text.c index 6049c95c..b9f762f7 100644 --- a/main/text.c +++ b/main/text.c @@ -16,7 +16,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #endif #ifdef RCS -static char rcsid[] = "$Id: text.c,v 1.6 2002-10-03 03:46:35 btb Exp $"; +static char rcsid[] = "$Id: text.c,v 1.7 2003-04-07 23:30:46 btb Exp $"; #endif #include @@ -82,7 +82,8 @@ void load_text() if ((tfile = cfopen(filename,"rb")) == NULL) { filename="descent.txb"; if ((ifile = cfopen(filename, "rb")) == NULL) { - Error("Cannot open file DESCENT.TEX or DESCENT.TXB\nIs descent2.hog in %s?", AltHogdir_initialized?AltHogDir:"current directory"); + Warning("Cannot open file DESCENT.TEX or DESCENT.TXB"); + return; } have_binary = 1; -- 2.39.2