summaryrefslogtreecommitdiff
path: root/src/strife/d_main.c
diff options
context:
space:
mode:
authorSimon Howard2011-09-26 21:34:13 +0000
committerSimon Howard2011-09-26 21:34:13 +0000
commit6ee44d364659f1d2b4c43c2bdad276c667ae1907 (patch)
treeb62f6dfcd200ea71594f3aa1e1aee46590ac7041 /src/strife/d_main.c
parentfcb27f12ee85d068e6b07fccc102ddf70c153c1f (diff)
downloadchocolate-doom-6ee44d364659f1d2b4c43c2bdad276c667ae1907.tar.gz
chocolate-doom-6ee44d364659f1d2b4c43c2bdad276c667ae1907.tar.bz2
chocolate-doom-6ee44d364659f1d2b4c43c2bdad276c667ae1907.zip
Add graphical_startup option for Strife (to match Heretic/Hexen).
Subversion-branch: /branches/v2-branch Subversion-revision: 2408
Diffstat (limited to 'src/strife/d_main.c')
-rw-r--r--src/strife/d_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/strife/d_main.c b/src/strife/d_main.c
index 45e5f0f3..f570d841 100644
--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -149,6 +149,7 @@ char wadfile[1024]; // primary wad file
char mapdir[1024]; // directory of development maps
int show_endoom = 1;
+int graphical_startup = 1;
// fraggle 06/03/11 [STRIFE]: Unused config variable, preserved
// for compatibility:
@@ -442,6 +443,7 @@ void D_BindVariables(void)
M_BindVariable("vanilla_demo_limit", &vanilla_demo_limit);
M_BindVariable("show_endoom", &show_endoom);
M_BindVariable("back_flat", &back_flat);
+ M_BindVariable("graphical_startup", &graphical_startup);
M_BindVariable("nickname", &nickname);
M_BindVariable("comport", &comport);
@@ -1571,6 +1573,11 @@ void D_DoomMain (void)
D_BindVariables();
M_LoadDefaults();
+ if (!graphical_startup)
+ {
+ showintro = false;
+ }
+
// Save configuration at exit.
I_AtExit(M_SaveDefaults, false);