shithub: choc

Download patch

ref: 90bb584b4b9c8e04204732d5b19f228631b174b2
parent: 66388c26e971b06a6940620c78d75796f178bcf5
author: Simon Howard <[email protected]>
date: Sat Sep 24 11:38:21 EDT 2011

Remove duplicate code for parsing -file parameter.

Subversion-branch: /branches/v2-branch
Subversion-revision: 2394

--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1287,29 +1287,6 @@
     D_AddFile(iwadfile);
     modifiedgame = W_ParseCommandLine();
 
-    //!
-    // @arg <files>
-    // @vanilla
-    //
-    // Load the specified PWAD files.
-    //
-
-    p = M_CheckParmWithArgs("-file", 1);
-    if (p)
-    {
-	// the parms after p are wadfile/lump names,
-	// until end of parms or another - preceded parm
-	modifiedgame = true;            // homebrew levels
-	while (++p != myargc && myargv[p][0] != '-')
-        {
-            char *filename;
-
-            filename = D_TryFindWADByName(myargv[p]);
-
-	    D_AddFile(filename);
-        }
-    }
-
     // Debug:
 //    W_PrintDirectory();