diff options
author | Simon Howard | 2008-12-03 18:54:36 +0000 |
---|---|---|
committer | Simon Howard | 2008-12-03 18:54:36 +0000 |
commit | 27f8ea9f5a210f055f443ef34017dd2412feb326 (patch) | |
tree | 86aa08b279f1295b19e30a9bd5cbe1163323351e /src/heretic/d_main.c | |
parent | 02f2b37c714aa44d82b7e311e03df39430706e69 (diff) | |
download | chocolate-doom-27f8ea9f5a210f055f443ef34017dd2412feb326.tar.gz chocolate-doom-27f8ea9f5a210f055f443ef34017dd2412feb326.tar.bz2 chocolate-doom-27f8ea9f5a210f055f443ef34017dd2412feb326.zip |
Centralise the list of IWAD files and use bitmasks to select which
mission types are valid.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1405
Diffstat (limited to 'src/heretic/d_main.c')
-rw-r--r-- | src/heretic/d_main.c | 8 |
1 files changed, 1 insertions, 7 deletions
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) { |