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/heretic/d_main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/heretic/d_main.c') diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c index b8edd430..bba09e65 100644 --- a/src/heretic/d_main.c +++ b/src/heretic/d_main.c @@ -455,12 +455,6 @@ void D_CheckRecordFrom(void) #define SHAREWAREWADNAME "heretic1.wad" -static iwad_t iwads[] = { - { "heretic.wad", heretic }, - { "heretic1.wad", heretic }, - { NULL, none }, -}; - char *iwadfile; char *basedefault = "heretic.cfg"; @@ -880,7 +874,7 @@ void D_DoomMain(void) printf("W_Init: Init WADfiles.\n"); - iwadfile = D_FindIWAD(iwads, &gamemission); + iwadfile = D_FindIWAD(IWAD_MASK_HERETIC, &gamemission); if (iwadfile == NULL) { -- cgit v1.2.3