From 9f05215cdf625af60888637ad5b8c29ecaca865e Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Fri, 3 Dec 2004 10:39:49 +0000 Subject: [PATCH] don't die if title screens not found --- ChangeLog | 2 ++ main/inferno.c | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b2dcccb4..124e88f8 100644 --- 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 * configure.ac: require PhysicsFS header and library diff --git a/main/inferno.c b/main/inferno.c index 48d3fa0b..f290f7ff 100644 --- a/main/inferno.c +++ b/main/inferno.c @@ -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); } } -- 2.39.2