From a24944d4e45da4bf0ba808a40c9e0eca15fb8b41 Mon Sep 17 00:00:00 2001 From: James Haley Date: Fri, 11 Feb 2011 03:11:32 +0000 Subject: Don't crash in D_IntroBackground when using -nograph. Subversion-branch: /branches/strife-branch Subversion-revision: 2254 --- src/strife/d_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/strife') diff --git a/src/strife/d_main.c b/src/strife/d_main.c index 2d9d14a0..dd2a55df 100644 --- a/src/strife/d_main.c +++ b/src/strife/d_main.c @@ -1232,8 +1232,13 @@ static byte *rawgfx_startbot; // static void D_IntroBackground(void) { + patch_t *panel0; + + if(!showintro) + return; + // Slam up PANEL0 to fill the background entirely (wasn't needed in vanilla) - patch_t *panel0 = W_CacheLumpName("PANEL0", PU_CACHE); + panel0 = W_CacheLumpName("PANEL0", PU_CACHE); V_DrawPatch(0, 0, panel0); // Strife cleared the screen somewhere in the low-level code between the -- cgit v1.2.3