From a33d23591953d7fbb0041544f4bbe7b807654bb8 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 27 Nov 2008 19:45:58 +0000 Subject: Add -game command-line parameter to control what game to configure settings for. Subversion-branch: /branches/raven-branch Subversion-revision: 1389 --- src/setup/display.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/setup/display.c') diff --git a/src/setup/display.c b/src/setup/display.c index a8865c30..8ce472bd 100644 --- a/src/setup/display.c +++ b/src/setup/display.c @@ -23,6 +23,7 @@ #include "textscreen.h" #include "m_config.h" +#include "mode.h" #include "display.h" @@ -449,7 +450,16 @@ void BindDisplayVariables(void) M_BindVariable("video_driver", &video_driver); M_BindVariable("usegamma", &usegamma); - // doom, heretic only: - M_BindVariable("show_endoom", &show_endoom); + + if (gamemission == doom || gamemission == heretic) + { + M_BindVariable("show_endoom", &show_endoom); + } + + if (gamemission == heretic || gamemission == hexen) + { + M_BindVariable("graphical_startup", &show_endoom); + } + } -- cgit v1.2.3