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
1 changed files with 7 additions and 0 deletions

View File

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