shithub: choc

Download patch

ref: b8fd310fc155b969346265601a48c21faec2ecf9
parent: 79f8427436cf2da7de710e9046f2e01dc6c8b17e
author: Fabian Greffrath <fabian@greffrath.com>
date: Mon Feb 24 04:34:04 EST 2014

Keep (bfgedition) as part of the check for TITLEPIC.

--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -576,7 +576,8 @@
 
     // The Doom 3: BFG Edition version of doom2.wad does not have a
     // TITLETPIC lump. Use INTERPIC instead as a workaround.
-    if (!strcasecmp(pagename, "TITLEPIC") && W_CheckNumForName("titlepic") < 0)
+    if (bfgedition && !strcasecmp(pagename, "TITLEPIC")
+        && W_CheckNumForName("titlepic") < 0)
     {
         pagename = DEH_String("INTERPIC");
     }