summaryrefslogtreecommitdiff
path: root/src/heretic/d_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/heretic/d_main.c')
-rw-r--r--src/heretic/d_main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c
index 6797ace1..9027cb51 100644
--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -743,6 +743,7 @@ void D_BindVariables(void)
void D_DoomMain(void)
{
+ int i;
int p;
int e;
int m;
@@ -871,7 +872,11 @@ void D_DoomMain(void)
Z_Init();
printf("W_Init: Init WADfiles.\n");
- W_InitMultipleFiles(wadfiles);
+
+ for (i=0; wadfiles[i] != NULL; ++i)
+ {
+ W_AddFile(wadfiles[i]);
+ }
if (W_CheckNumForName("E2M1") == -1)
{ // Can't find episode 2 maps, must be the shareware WAD