ref: a24944d4e45da4bf0ba808a40c9e0eca15fb8b41
parent: 9c4484196a6a5daa1b8c7426a67f6158659027c3
author: James Haley <haleyjd@hotmail.com>
date: Thu Feb 10 22:11:32 EST 2011
Don't crash in D_IntroBackground when using -nograph. Subversion-branch: /branches/strife-branch Subversion-revision: 2254
--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -1232,8 +1232,13 @@
//
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