mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix console command line quit
This commit is contained in:
parent
35de51ee31
commit
95e200a9e0
1 changed files with 13 additions and 0 deletions
|
@ -243,6 +243,19 @@ bi_Menu_SelectMenu (progs_t *pr)
|
||||||
const char *name = G_STRING (pr, OFS_PARM0);
|
const char *name = G_STRING (pr, OFS_PARM0);
|
||||||
|
|
||||||
menu = Hash_Find (menu_hash, name);
|
menu = Hash_Find (menu_hash, name);
|
||||||
|
if (menu) {
|
||||||
|
key_dest = key_menu;
|
||||||
|
game_target = IMT_CONSOLE;
|
||||||
|
} else {
|
||||||
|
Con_Printf ("no menu \"%s\"\n", name);
|
||||||
|
if (con_data.force_commandline) {
|
||||||
|
key_dest = key_console;
|
||||||
|
game_target = IMT_CONSOLE;
|
||||||
|
} else {
|
||||||
|
key_dest = key_game;
|
||||||
|
game_target = IMT_0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue