mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
client/menu/menu.c: make ConsoleFunc() consistent with cl_console:Con_ToggleConsole_f().
This commit is contained in:
parent
01e262eb35
commit
a1adac8ba9
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue