From 6e9b549b678a6b8abfedeab62e93214ccb4f08ac Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 24 Sep 2011 18:31:57 +0000 Subject: Don't allow menu actions when running with -testcontrols. Quit immediately when pressing the window close button. Subversion-branch: /branches/v2-branch Subversion-revision: 2400 --- src/heretic/mn_menu.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/heretic') diff --git a/src/heretic/mn_menu.c b/src/heretic/mn_menu.c index 4d394db1..4db108cf 100644 --- a/src/heretic/mn_menu.c +++ b/src/heretic/mn_menu.c @@ -1046,6 +1046,9 @@ boolean MN_Responder(event_t * event) extern void G_CheckDemoStatus(void); char *textBuffer; + // In testcontrols mode, none of the function keys should do anything + // - the only key is escape to quit. + if (testcontrols) { if (event->type == ev_quit @@ -1056,6 +1059,8 @@ boolean MN_Responder(event_t * event) I_Quit(); return true; } + + return false; } // "close" button pressed on window? -- cgit v1.2.3