foxygit / doom Log in
commit a24944d4e45da4bf0ba808a40c9e0eca15fb8b41
Author:     James Haley <haleyjd@hotmail.com>
AuthorDate: Fri Feb 11 03:11:32 2011 +0000
Commit:     James Haley <haleyjd@hotmail.com>
CommitDate: Fri Feb 11 03:11:32 2011 +0000

    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(-)

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