summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2010-02-08 19:16:27 +0000
committerSimon Howard2010-02-08 19:16:27 +0000
commit9769464ecf7ae3c92c628deed8164b61f567923a (patch)
tree40a27a1c765ecfb886c2dd4b959b465757ce4c6c /src
parentc09b386e1f3cb3518b22c440d6fb7c081ff3aa0b (diff)
downloadchocolate-doom-9769464ecf7ae3c92c628deed8164b61f567923a.tar.gz
chocolate-doom-9769464ecf7ae3c92c628deed8164b61f567923a.tar.bz2
chocolate-doom-9769464ecf7ae3c92c628deed8164b61f567923a.zip
Call DEH_Init on Heretic startup so that patches will be loaded.
Subversion-branch: /branches/raven-branch Subversion-revision: 1864
Diffstat (limited to 'src')
-rw-r--r--src/heretic/d_main.c6
1 files changed, 6 insertions, 0 deletions
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);