summaryrefslogtreecommitdiff
path: root/src/hexen
diff options
context:
space:
mode:
authorSimon Howard2011-09-24 18:31:57 +0000
committerSimon Howard2011-09-24 18:31:57 +0000
commit6e9b549b678a6b8abfedeab62e93214ccb4f08ac (patch)
tree9845c9d7e0cfb9ff437597a163f79fdf88198283 /src/hexen
parentf742664b920500cb7343ee40338ab6add6acb9a2 (diff)
downloadchocolate-doom-6e9b549b678a6b8abfedeab62e93214ccb4f08ac.tar.gz
chocolate-doom-6e9b549b678a6b8abfedeab62e93214ccb4f08ac.tar.bz2
chocolate-doom-6e9b549b678a6b8abfedeab62e93214ccb4f08ac.zip
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
Diffstat (limited to 'src/hexen')
-rw-r--r--src/hexen/mn_menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hexen/mn_menu.c b/src/hexen/mn_menu.c
index c7a8bef9..0bd942a4 100644
--- a/src/hexen/mn_menu.c
+++ b/src/hexen/mn_menu.c
@@ -1142,6 +1142,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
@@ -1152,6 +1155,8 @@ boolean MN_Responder(event_t * event)
I_Quit();
return true;
}
+
+ return false;
}
// "close" button pressed on window?