foxygit / doom Log in
commit 90bb584b4b9c8e04204732d5b19f228631b174b2
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sat Sep 24 15:38:21 2011 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sat Sep 24 15:38:21 2011 +0000

    Remove duplicate code for parsing -file parameter.

    Subversion-branch: /branches/v2-branch
    Subversion-revision: 2394
---
 src/doom/d_main.c | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index beb15019..0348c39d 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -1287,29 +1287,6 @@ void D_DoomMain (void)
     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();