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
This commit is contained in:
parent
dc3a037985
commit
cb7bd8eba5
2 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue