added an in_restart (I'm sure it breaks somewhere...)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1977 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-02-20 22:33:30 +00:00
parent cb3f383214
commit 20b13f2b0d

View file

@ -328,6 +328,12 @@ void IN_Impulse (void)
in_impulsespending[pnum]++; in_impulsespending[pnum]++;
} }
void IN_Restart()
{
IN_Shutdown();
IN_Init();
}
/* /*
=============== ===============
CL_KeyState CL_KeyState
@ -1541,6 +1547,7 @@ void CL_InitInput (void)
CL_RegisterSplitCommands(); CL_RegisterSplitCommands();
Cmd_AddCommand("rotate", IN_Rotate_f); Cmd_AddCommand("rotate", IN_Rotate_f);
Cmd_AddCommand("in_restart", IN_Restart);
Cvar_Register (&cl_nodelta, inputnetworkcvargroup); Cvar_Register (&cl_nodelta, inputnetworkcvargroup);