summaryrefslogtreecommitdiff
path: root/src/hexen
diff options
context:
space:
mode:
Diffstat (limited to 'src/hexen')
-rw-r--r--src/hexen/mn_menu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hexen/mn_menu.c b/src/hexen/mn_menu.c
index dd508e28..3ac9c609 100644
--- a/src/hexen/mn_menu.c
+++ b/src/hexen/mn_menu.c
@@ -1132,6 +1132,14 @@ boolean MN_Responder(event_t * event)
extern void G_CheckDemoStatus(void);
char *textBuffer;
+ // "close" button pressed on window?
+ if (event->type == ev_quit)
+ {
+ SCQuitGame(0);
+ S_StartSound(NULL, SFX_CHAT);
+ return true;
+ }
+
if (event->data1 == KEY_RSHIFT)
{
shiftdown = (event->type == ev_keydown);