Patch from Spike to toggle impulse-queueing. Only Hexn 2 would require this to be 1.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2867 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8a7f755c72
commit
004ffebb66
1 changed files with 12 additions and 4 deletions
|
@ -31,9 +31,8 @@ cvar_t cl_nodelta = SCVAR("cl_nodelta","0");
|
|||
|
||||
cvar_t cl_c2spps = SCVAR("cl_c2spps", "0");
|
||||
cvar_t cl_c2sImpulseBackup = SCVAR("cl_c2sImpulseBackup","3");
|
||||
|
||||
cvar_t cl_netfps = SCVAR("cl_netfps", "0");
|
||||
|
||||
cvar_t cl_queueimpulses = SCVAR("cl_queueimpulses", "0");
|
||||
cvar_t cl_smartjump = SCVAR("cl_smartjump", "1");
|
||||
|
||||
cvar_t cl_prydoncursor = SCVAR("cl_prydoncursor", "0"); //for dp protocol
|
||||
|
@ -325,8 +324,16 @@ void IN_Impulse (void)
|
|||
return;
|
||||
}
|
||||
|
||||
in_impulse[pnum][(in_nextimpulse[pnum]+in_impulsespending[pnum])%IN_IMPULSECACHE] = newimp;
|
||||
in_impulsespending[pnum]++;
|
||||
if (cl_queueimpulses.value)
|
||||
{
|
||||
in_impulse[pnum][(in_nextimpulse[pnum]+in_impulsespending[pnum])%IN_IMPULSECACHE] = newimp;
|
||||
in_impulsespending[pnum]++;
|
||||
}
|
||||
else
|
||||
{
|
||||
in_impulse[pnum][(in_nextimpulse[pnum])%IN_IMPULSECACHE] = newimp;
|
||||
in_impulsespending[pnum]=1;
|
||||
}
|
||||
}
|
||||
|
||||
void IN_Restart (void)
|
||||
|
@ -1761,6 +1768,7 @@ void CL_InitInput (void)
|
|||
|
||||
Cvar_Register (&cl_c2sImpulseBackup, inputnetworkcvargroup);
|
||||
Cvar_Register (&cl_c2spps, inputnetworkcvargroup);
|
||||
Cvar_Register (&cl_queueimpulses, inputnetworkcvargroup);
|
||||
Cvar_Register (&cl_netfps, inputnetworkcvargroup);
|
||||
|
||||
Cvar_Register (&cl_smartjump, inputnetworkcvargroup);
|
||||
|
|
Loading…
Reference in a new issue