From 4c4aeacb2fa4d42374db8862209f3f649a062928 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 29 Apr 2018 09:32:21 +0000 Subject: [PATCH] Fix the menu for missing data, it needs to use CACHEPICFLAG_FAILONMISSING or the Draw_IsPicLoaded call will never fail. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12403 d7cf8633-e32d-0410-b094-e92efae38249 --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.c b/menu.c index aa6fb7b0..9d3a4c20 100644 --- a/menu.c +++ b/menu.c @@ -414,7 +414,7 @@ void M_Menu_Main_f (void) MAIN_ITEMS = 5; // check if the game data is missing and use a different main menu if so - m_missingdata = !forceqmenu.integer && !Draw_IsPicLoaded(Draw_CachePic(s)); + m_missingdata = !forceqmenu.integer && !Draw_IsPicLoaded(Draw_CachePic_Flags(s, CACHEPICFLAG_FAILONMISSING)); if (m_missingdata) MAIN_ITEMS = 2; -- 2.39.2