don't die if title screens not found
authorBradley Bell <btb@icculus.org>
Fri, 3 Dec 2004 10:39:49 +0000 (10:39 +0000)
committerBradley Bell <btb@icculus.org>
Fri, 3 Dec 2004 10:39:49 +0000 (10:39 +0000)
ChangeLog
main/inferno.c

index b2dcccb..124e88f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,8 @@
        * main/kconfig.c: disable call to reset_cockpit() which was
        causing the "letterbox" bug
 
+       * main/inferno.c: don't die if title screens not found
+
 2004-12-02  Martin Schaffner  <maschaffner@gmx.ch>
 
        * configure.ac: require PhysicsFS header and library
index 48d3fa0..f290f7f 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: inferno.c,v 1.93 2004-12-01 12:48:13 btb Exp $ */
+/* $Id: inferno.c,v 1.94 2004-12-03 10:39:49 btb Exp $ */
 /*
 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
@@ -878,14 +878,16 @@ int main(int argc, char *argv[])
                                        strcpy(filename, "iplogo1.pcx"); // SHAREWARE
                                if (! cfexist(filename))
                                        strcpy(filename, "mplogo.pcx"); // MAC SHAREWARE
-                               show_title_screen(filename, 1, 1 );
+                               if (cfexist(filename))
+                                       show_title_screen(filename, 1, 1);
 
                                strcpy(filename, MenuHires?"logob.pcx":"logo.pcx"); // OEM
                                if (! cfexist(filename))
                                        strcpy(filename, "logo.pcx"); // SHAREWARE
                                if (! cfexist(filename))
                                        strcpy(filename, "plogo.pcx"); // MAC SHAREWARE
-                               show_title_screen(filename, 1, 1 );
+                               if (cfexist(filename))
+                                       show_title_screen(filename, 1, 1);
                        }
                }