client/menu/menu.c: make ConsoleFunc() consistent with cl_console:Con_ToggleConsole_f().

This commit is contained in:
svdijk 2012-10-28 14:25:32 +01:00 committed by Yamagi Burmeister
parent 01e262eb35
commit a1adac8ba9

View file

@ -1407,8 +1407,11 @@ extern void Key_ClearTyping(void);
static void
ConsoleFunc(void *unused)
{
SCR_EndLoadingPlaque(); /* get rid of loading plaque */
if (cl.attractloop)
{
Cvar_SetValue("windowed_mouse", 0);
Cbuf_AddText("killserver\n");
return;
}
@ -1418,6 +1421,12 @@ ConsoleFunc(void *unused)
M_ForceMenuOff();
cls.key_dest = key_console;
if ((Cvar_VariableValue("maxclients") == 1) &&
Com_ServerState())
{
Cvar_Set("paused", "1");
}
}
static void