From 95e200a9e01f1afc57d8ee815f97860c310585b1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 20 Jan 2002 00:32:14 +0000 Subject: [PATCH] fix console command line quit --- libs/console/menu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libs/console/menu.c b/libs/console/menu.c index 07083d119..6f86cfc3a 100644 --- a/libs/console/menu.c +++ b/libs/console/menu.c @@ -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