don't die on text not found
authorBradley Bell <btb@icculus.org>
Mon, 7 Apr 2003 23:30:46 +0000 (23:30 +0000)
committerBradley Bell <btb@icculus.org>
Mon, 7 Apr 2003 23:30:46 +0000 (23:30 +0000)
ChangeLog
main/text.c

index 706f842..645ecb4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2003-04-07  Bradley Bell  <btb@icculus.org>
 
+       * 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
 
index 6049c95..b9f762f 100644 (file)
@@ -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 <stdio.h>
@@ -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;