From 55d77d3c117ad42d2b0918b1cc2b518e6714c4ae Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 15 Dec 2004 19:39:21 +0000 Subject: [PATCH] That makes menus a little more friendly with missing images. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@646 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/m_items.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/client/m_items.c b/engine/client/m_items.c index b51e203d9..c6f5a29c7 100644 --- a/engine/client/m_items.c +++ b/engine/client/m_items.c @@ -1280,7 +1280,10 @@ void M_Menu_Main_f (void) SCR_EndLoadingPlaque(); //just in case... if (!Draw_SafeCachePic) + { + Con_ToggleConsole_f(); return; + } /* if (0) @@ -1389,7 +1392,10 @@ void M_Menu_Main_f (void) MC_AddPicture(mainm, 16, 4, "gfx/qplaque.lmp"); p = Draw_SafeCachePic("gfx/ttl_main.lmp"); if (!p) + { + Con_ToggleConsole_f(); return; + } MC_AddPicture(mainm, (320-p->width)/2, 4, "gfx/ttl_main.lmp"); MC_AddPicture(mainm, 72, 32, "gfx/mainmenu.lmp");