summaryrefslogtreecommitdiff
path: root/src/strife
diff options
context:
space:
mode:
authorJames Haley2011-02-11 03:11:32 +0000
committerJames Haley2011-02-11 03:11:32 +0000
commita24944d4e45da4bf0ba808a40c9e0eca15fb8b41 (patch)
tree87a05da77f9177d3d950eaf2ae6728c6663fc7fc /src/strife
parent9c4484196a6a5daa1b8c7426a67f6158659027c3 (diff)
downloadchocolate-doom-a24944d4e45da4bf0ba808a40c9e0eca15fb8b41.tar.gz
chocolate-doom-a24944d4e45da4bf0ba808a40c9e0eca15fb8b41.tar.bz2
chocolate-doom-a24944d4e45da4bf0ba808a40c9e0eca15fb8b41.zip
Don't crash in D_IntroBackground when using -nograph.
Subversion-branch: /branches/strife-branch Subversion-revision: 2254
Diffstat (limited to 'src/strife')
-rw-r--r--src/strife/d_main.c7
1 files changed, 6 insertions, 1 deletions
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