fix console command line quit

This commit is contained in:
Bill Currie 2002-01-20 00:32:14 +00:00
parent 35de51ee31
commit 95e200a9e0

View file

@ -243,6 +243,19 @@ bi_Menu_SelectMenu (progs_t *pr)
const char *name = G_STRING (pr, OFS_PARM0);
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