diff options
author | Simon Howard | 2009-05-04 20:07:48 +0000 |
---|---|---|
committer | Simon Howard | 2009-05-04 20:07:48 +0000 |
commit | 5014caee2a000ffd682f04bcbec76265b2163335 (patch) | |
tree | b29dc89bc5edcaa8c9d57c9a550541689af4bec9 /src/hexen | |
parent | 2c7cf58786bbf80d519b02b2c112a0a2c55d898e (diff) | |
download | chocolate-doom-5014caee2a000ffd682f04bcbec76265b2163335.tar.gz chocolate-doom-5014caee2a000ffd682f04bcbec76265b2163335.tar.bz2 chocolate-doom-5014caee2a000ffd682f04bcbec76265b2163335.zip |
Fix window close button to bring up F10 quit message.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1506
Diffstat (limited to 'src/hexen')
-rw-r--r-- | src/hexen/mn_menu.c | 8 |
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); |