shithub: choc

Download patch

ref: 749e078e9f67af467e563c77688b6fccf352b001
parent: 617e75e9a4c79a21b68385fe69066ab3cab353ae
author: Simon Howard <[email protected]>
date: Wed Sep 24 14:10:32 EDT 2008

Remove W_InitMultipleFiles call, replace with W_AddFile calls.

Subversion-branch: /branches/raven-branch
Subversion-revision: 1268

--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -743,6 +743,7 @@
 
 void D_DoomMain(void)
 {
+    int i;
     int p;
     int e;
     int m;
@@ -871,7 +872,11 @@
     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