diff options
author | Simon Howard | 2008-11-27 19:45:58 +0000 |
---|---|---|
committer | Simon Howard | 2008-11-27 19:45:58 +0000 |
commit | a33d23591953d7fbb0041544f4bbe7b807654bb8 (patch) | |
tree | 62b537081481a4129ce92455246ea71046cad1d7 /src/setup/display.c | |
parent | 2b5de0bafc1ebe347e08617de7595c1ea507c0b9 (diff) | |
download | chocolate-doom-a33d23591953d7fbb0041544f4bbe7b807654bb8.tar.gz chocolate-doom-a33d23591953d7fbb0041544f4bbe7b807654bb8.tar.bz2 chocolate-doom-a33d23591953d7fbb0041544f4bbe7b807654bb8.zip |
Add -game command-line parameter to control what game to configure
settings for.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1389
Diffstat (limited to 'src/setup/display.c')
-rw-r--r-- | src/setup/display.c | 14 |
1 files changed, 12 insertions, 2 deletions
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); + } + } |