summaryrefslogtreecommitdiff
path: root/src/hexen/h2_main.c
diff options
context:
space:
mode:
authorSimon Howard2008-12-03 18:54:36 +0000
committerSimon Howard2008-12-03 18:54:36 +0000
commit27f8ea9f5a210f055f443ef34017dd2412feb326 (patch)
tree86aa08b279f1295b19e30a9bd5cbe1163323351e /src/hexen/h2_main.c
parent02f2b37c714aa44d82b7e311e03df39430706e69 (diff)
downloadchocolate-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/hexen/h2_main.c')
-rw-r--r--src/hexen/h2_main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c
index f7bc665e..72e323c5 100644
--- a/src/hexen/h2_main.c
+++ b/src/hexen/h2_main.c
@@ -136,11 +136,6 @@ static int demosequence;
static int pagetic;
static char *pagename;
-static iwad_t iwads[] = {
- { "hexen.wad", hexen },
- { NULL, none },
-};
-
static execOpt_t ExecOptions[] = {
{"-file", ExecOptionFILE, 1, 0},
{"-scripts", ExecOptionSCRIPTS, 1, 0},
@@ -272,7 +267,7 @@ void D_DoomMain(void)
ST_Message("W_Init: Init WADfiles.\n");
- iwadfile = D_FindIWAD(iwads, &gamemission);
+ iwadfile = D_FindIWAD(IWAD_MASK_HEXEN, &gamemission);
if (iwadfile == NULL)
{