summaryrefslogtreecommitdiff
path: root/src/strife/d_main.c
diff options
context:
space:
mode:
authorJames Haley2011-02-20 18:36:20 +0000
committerJames Haley2011-02-20 18:36:20 +0000
commit1dfe19b3066aa4419d236a48a4765ad2eb393141 (patch)
treea34451585dcfd07ad04cb02c1345c29663726f27 /src/strife/d_main.c
parent9e13008481a526eca87ca480bf6bc52b0f31e795 (diff)
downloadchocolate-doom-1dfe19b3066aa4419d236a48a4765ad2eb393141.tar.gz
chocolate-doom-1dfe19b3066aa4419d236a48a4765ad2eb393141.tar.bz2
chocolate-doom-1dfe19b3066aa4419d236a48a4765ad2eb393141.zip
Removed ability to disable messages, and replaced with configuration
variable to control dialogue text messages, as in vanilla. Also, absence of voices.wad, or use of the -novoices parameter, will now properly both disable voices AND enable dialogue text. Subversion-branch: /branches/strife-branch Subversion-revision: 2268
Diffstat (limited to 'src/strife/d_main.c')
-rw-r--r--src/strife/d_main.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/strife/d_main.c b/src/strife/d_main.c
index 95b1b643..c414a337 100644
--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -60,6 +60,7 @@
#include "m_menu.h"
#include "m_saves.h" // haleyjd [STRIFE]
#include "p_saveg.h"
+#include "p_dialog.h" // haleyjd [STRIFE]
#include "i_endoom.h"
#include "i_joystick.h"
@@ -194,7 +195,7 @@ void D_ProcessEvents (void)
//
gamestate_t wipegamestate = GS_UNKNOWN;
extern boolean setsizeneeded;
-extern int showMessages;
+//extern int showMessages; [STRIFE] no such variable
void R_ExecuteSetViewSize (void);
void D_Display (void)
@@ -414,11 +415,13 @@ void D_BindVariables(void)
// haleyjd 08/29/10: [STRIFE]
// * Added voice volume
// * Added back flat
+ // * Removed show_messages
+ // * Added show_text
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("show_text", &dialogshowtext);
M_BindVariable("screenblocks", &screenblocks);
M_BindVariable("detaillevel", &detailLevel);
M_BindVariable("snd_channels", &snd_channels);
@@ -1915,6 +1918,16 @@ void D_DoomMain (void)
S_Init (sfxVolume * 8, musicVolume * 8, voiceVolume * 8); // [STRIFE]: voice
D_IntroTick(); // [STRIFE]
+ // haleyjd 20110220: This stuff was done in I_StartupSound in vanilla, but
+ // we'll do it here instead so we don't have to modify the low-level shared
+ // code with Strife-specific stuff.
+ if(disable_voices || M_CheckParm("-novoice"))
+ {
+ dialogshowtext = disable_voices = 1;
+ }
+ if(devparm)
+ DEH_printf(" Play voices = %d\n", disable_voices == 0);
+
if(devparm) // [STRIFE]
DEH_printf("D_CheckNetGame: Checking network game status.\n");
D_CheckNetGame ();