summaryrefslogtreecommitdiff
path: root/src/strife/d_main.c
diff options
context:
space:
mode:
authorJames Haley2010-08-29 18:13:19 +0000
committerJames Haley2010-08-29 18:13:19 +0000
commit9563371e9ad296eded19008a26382ad311182dbc (patch)
tree53935f5a2ce5bfbd23e53001d22ea8f5c72aa4ed /src/strife/d_main.c
parent0044cf8336b5a623b5a56a2827a938276363770e (diff)
downloadchocolate-doom-9563371e9ad296eded19008a26382ad311182dbc.tar.gz
chocolate-doom-9563371e9ad296eded19008a26382ad311182dbc.tar.bz2
chocolate-doom-9563371e9ad296eded19008a26382ad311182dbc.zip
Added voice volume and back flat configuration variables. Made status
bar redraw when menus are active as in Strife. Finished up the Strife "settings" menu which was only for sound volumes in vanilla Doom. Subversion-branch: /branches/strife-branch Subversion-revision: 1973
Diffstat (limited to 'src/strife/d_main.c')
-rw-r--r--src/strife/d_main.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/strife/d_main.c b/src/strife/d_main.c
index 1bfaad65..519b3bca 100644
--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -128,8 +128,8 @@ FILE* debugfile;
boolean advancedemo;
// Store demo, do not accept any inputs
-
-boolean storedemo;
+// haleyjd [STRIFE] Unused.
+//boolean storedemo;
char wadfile[1024]; // primary wad file
@@ -235,7 +235,8 @@ void D_Display (void)
AM_Drawer ();
if (wipe || (viewheight != 200 && fullscreen) )
redrawsbar = true;
- if (inhelpscreensstate && !inhelpscreens)
+ // haleyjd 08/29/10: [STRIFE] Always redraw sbar if menu is/was active
+ if (menuactivestate || (inhelpscreensstate && !inhelpscreens))
redrawsbar = true; // just put away the help screen
ST_Drawer (viewheight == 200, redrawsbar );
fullscreen = viewheight == 200;
@@ -264,7 +265,19 @@ void D_Display (void)
R_RenderPlayerView (&players[displayplayer]);
if (gamestate == GS_LEVEL && gametic)
+ {
HU_Drawer ();
+ // STRIFE-TODO: ST_DrawMore, unknown variable dword_861C8
+ /*
+ if(ST_DrawMore())
+ dword_861C8 = 1;
+ else if(dword_861C8)
+ {
+ dword_861C8 = 0;
+ menuactivestate = 1;
+ }
+ */
+ }
// clean up border stuff
if (gamestate != oldgamestate && gamestate != GS_LEVEL)
@@ -377,9 +390,13 @@ void D_BindVariables(void)
NET_BindVariables();
#endif
+ // haleyjd 08/29/10: [STRIFE]
+ // * Added voice volume
+ // * Added back flat
M_BindVariable("mouse_sensitivity", &mouseSensitivity);
M_BindVariable("sfx_volume", &sfxVolume);
M_BindVariable("music_volume", &musicVolume);
+ M_BindVariable("voice_volume", &voiceVolume);
M_BindVariable("show_messages", &showMessages);
M_BindVariable("screenblocks", &screenblocks);
M_BindVariable("detaillevel", &detailLevel);
@@ -387,6 +404,7 @@ void D_BindVariables(void)
M_BindVariable("vanilla_savegame_limit", &vanilla_savegame_limit);
M_BindVariable("vanilla_demo_limit", &vanilla_demo_limit);
M_BindVariable("show_endoom", &show_endoom);
+ M_BindVariable("back_flat", &back_flat);
// Multiplayer chat macros