foxygit / doom Log in
commit 9769464ecf7ae3c92c628deed8164b61f567923a
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Mon Feb 8 19:16:27 2010 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Mon Feb 8 19:16:27 2010 +0000

    Call DEH_Init on Heretic startup so that patches will be loaded.

    Subversion-branch: /branches/raven-branch
    Subversion-revision: 1864
---
 src/heretic/d_main.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c
index 10f5fd3e..ddcbca20 100644
--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -33,6 +33,7 @@
 #include "config.h"
 #include "ct_chat.h"
 #include "doomdef.h"
+#include "deh_main.h"
 #include "d_iwad.h"
 #include "i_endoom.h"
 #include "i_joystick.h"
@@ -890,6 +891,11 @@ void D_DoomMain(void)
     printf("Z_Init: Init zone memory allocation daemon.\n");
     Z_Init();

+#ifdef FEATURE_DEHACKED
+    printf("DEH_Init: Init Dehacked support.\n");
+    DEH_Init();
+#endif
+
     printf("W_Init: Init WADfiles.\n");

     iwadfile = D_FindIWAD(IWAD_MASK_HERETIC, &gamemission);