From cb7bd8eba5bd8e17226e05b13a683233a56ae3b8 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Tue, 21 Jun 2005 01:39:36 +0000 Subject: [PATCH] fix to viewshift (rid# 1089460) snd_inactive with primarysound git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1106 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/snd_directx.c | 6 ++++++ engine/client/view.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/engine/client/snd_directx.c b/engine/client/snd_directx.c index 2a76e5fa1..9fae7c7ef 100644 --- a/engine/client/snd_directx.c +++ b/engine/client/snd_directx.c @@ -668,6 +668,12 @@ int DSOUND_InitCard (soundcardinfo_t *sc, int cardnum) dsbuf.dwBufferBytes = 0; dsbuf.lpwfxFormat = NULL; + if (snd_inactive.value) + { + dsbuf.dwFlags |= DSBCAPS_GLOBALFOCUS; + sc->inactive_sound = true; + } + memset(&dsbcaps, 0, sizeof(dsbcaps)); dsbcaps.dwSize = sizeof(dsbcaps); primary_format_set = false; diff --git a/engine/client/view.c b/engine/client/view.c index 4b08fb513..28098129e 100644 --- a/engine/client/view.c +++ b/engine/client/view.c @@ -55,7 +55,7 @@ cvar_t lcd_x = {"lcd_x", "0"}; // FIXME: make this work sometime... cvar_t cl_rollspeed = {"cl_rollspeed", "200"}; cvar_t cl_rollangle = {"cl_rollangle", "2.0"}; -cvar_t v_deathtilt = {"cl_deathtilt", "1"}; +cvar_t v_deathtilt = {"v_deathtilt", "1"}; cvar_t cl_bob = {"cl_bob","0.02"}; cvar_t cl_bobcycle = {"cl_bobcycle","0.6"}; @@ -1615,6 +1615,7 @@ void V_Init (void) Cvar_Register (&v_kickroll, VIEWVARS); Cvar_Register (&v_kickpitch, VIEWVARS); + Cvar_Register (&v_idlescale, VIEWVARS); #ifdef SIDEVIEWS #define SECONDARYVIEWVARS "Secondary view vars"