foxygit / doom Log in
commit 612ec940e5622263ad0960c7ee94cac3f447849f
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sun Nov 17 01:28:38 2013 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sun Nov 17 01:28:38 2013 +0000

    Change names of Doom II MAP31/MAP32 when using the BFG edition (thanks
    Fabian Greffrath).

    Subversion-branch: /branches/v2-branch
    Subversion-revision: 2747
---
 src/doom/d_main.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index 931c50a8..95342437 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1577,6 +1577,16 @@ void D_DoomMain (void)
     {
         printf("BFG Edition: Using INTERPIC instead of TITLEPIC.\n");
         bfgedition = true;
+
+        // BFG Edition changes the names of the secret levels to
+        // censor the Wolfenstein references. It also has an extra
+        // secret level (MAP33). In Vanilla Doom (meaning the DOS
+        // version), MAP33 overflows into the Plutonia level names
+        // array, so HUSTR_33 is actually PHUSTR_1.
+
+        DEH_AddStringReplacement(HUSTR_31, "level 31: idkfa");
+        DEH_AddStringReplacement(HUSTR_32, "level 32: keen");
+        DEH_AddStringReplacement(PHUSTR_1, "level 33: betray");
     }

     if (M_CheckParmWithArgs("-statdump", 1))