summaryrefslogtreecommitdiff
path: root/src/setup/mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/mode.c')
-rw-r--r--src/setup/mode.c32
1 files changed, 30 insertions, 2 deletions
diff --git a/src/setup/mode.c b/src/setup/mode.c
index 702db67d..53a74314 100644
--- a/src/setup/mode.c
+++ b/src/setup/mode.c
@@ -91,6 +91,15 @@ static mission_config_t mission_configs[] =
"hexen.cfg",
PROGRAM_PREFIX "hexen.cfg",
PROGRAM_PREFIX "hexen"
+ },
+ {
+ "Strife",
+ strife,
+ IWAD_MASK_STRIFE,
+ "strife",
+ "strife.cfg",
+ PROGRAM_PREFIX "strife.cfg",
+ PROGRAM_PREFIX "strife"
}
};
@@ -103,11 +112,12 @@ static int screenblocks = 9;
static int detailLevel = 0;
static char *savedir = NULL;
static char *executable = NULL;
+static char *back_flat = "F_PAVE01";
+static int comport = 0;
+static char *nickname = NULL;
static void BindMiscVariables(void)
{
- M_BindVariable("screenblocks", &screenblocks);
-
if (gamemission == doom)
{
M_BindVariable("detaillevel", &detailLevel);
@@ -119,6 +129,19 @@ static void BindMiscVariables(void)
M_BindVariable("savedir", &savedir);
M_BindVariable("messageson", &showMessages);
}
+
+ if (gamemission == strife)
+ {
+ M_BindVariable("back_flat", &back_flat);
+ M_BindVariable("screensize" , &screenblocks);
+ M_BindVariable("comport", &comport);
+ M_BindVariable("nickname", &nickname);
+ }
+ else
+ {
+ M_BindVariable("screenblocks", &screenblocks);
+ }
+
}
//
@@ -146,6 +169,11 @@ void InitBindings(void)
M_BindHexenControls();
}
+ if (gamemission == strife)
+ {
+ M_BindStrifeControls();
+ }
+
// All other variables
BindCompatibilityVariables();