From 27f8ea9f5a210f055f443ef34017dd2412feb326 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 3 Dec 2008 18:54:36 +0000 Subject: Centralise the list of IWAD files and use bitmasks to select which mission types are valid. Subversion-branch: /branches/raven-branch Subversion-revision: 1405 --- src/doom/d_main.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'src/doom/d_main.c') diff --git a/src/doom/d_main.c b/src/doom/d_main.c index 91224e88..c8a91e74 100644 --- a/src/doom/d_main.c +++ b/src/doom/d_main.c @@ -591,17 +591,6 @@ void D_StartTitle (void) D_AdvanceDemo (); } -static iwad_t iwads[] = -{ - {"doom2.wad", doom2}, - {"plutonia.wad", pack_plut}, - {"tnt.wad", pack_tnt}, - {"doom.wad", doom}, - {"doom1.wad", doom}, - {"chex.wad", doom}, - {NULL, none}, -}; - // Strings for dehacked replacements of the startup banner // // These are from the original source: some of them are perhaps @@ -1061,14 +1050,6 @@ void D_DoomMain (void) M_FindResponseFile (); - // Undocumented "search for IWADs" parameter used by the setup - // tool. - - if (M_CheckParm("-findiwads") > 0) - { - D_FindInstalledIWADs(iwads); - } - // print banner I_PrintBanner(PACKAGE_STRING); @@ -1123,7 +1104,7 @@ void D_DoomMain (void) DEH_Init(); #endif - iwadfile = D_FindIWAD(iwads, &gamemission); + iwadfile = D_FindIWAD(IWAD_MASK_DOOM, &gamemission); // None found? -- cgit v1.2.3