From d70a3772f33d86e66fa5adbbaf2e29db0685d91c Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sat, 29 Jun 2002 17:43:01 +0000 Subject: [PATCH] WIN32: File Save still enabled during #quit disclosure processing > Below is the result of your feedback form. It was submitted by > on Tuesday, June 4, 2002 at 21:04:54 > After alt-Q or F)ile, Q)uitting, it is still possible to F)ile, S)ave your > game. By doing this after you are shown your inventory [fully identified] and > attributes (It must be done before the last "Do you want to view your %1" > dialog is answered--usually conduct), which means you can know what you are > holding-- although it won't be officially identified. But you can use it to > avoid putting on, say, an amulet of strangulation by mistake. --- doc/fixes34.1 | 1 + win/win32/mhmain.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index f7c48803a..c3568c7a1 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -135,6 +135,7 @@ win32: allow error save files to be generated win32: strip illegal file name characters from plname and replace with '_' win32gui: make error() work; it was essentially non-operative in 3.4.0 win32gui: fix alignment of columns in menu windows +win32gui: Window menu File|Save worked during #quit disclosure processing win32tty: honour the use_inverse option and default to ATR_BOLD if disabled win32tty: respond only to mouse clicks not mouse movement X11: restore support for non-square tiles when USE_XPM is defined diff --git a/win/win32/mhmain.c b/win/win32/mhmain.c index fb2563827..92b10bfea 100644 --- a/win/win32/mhmain.c +++ b/win/win32/mhmain.c @@ -709,7 +709,8 @@ LRESULT onWMCommand(HWND hWnd, WPARAM wParam, LPARAM lParam) break; case IDM_SAVE: - dosave(); + if (!program_state.gameover && !program_state.done_hup) dosave(); + else MessageBeep(0); break; case IDM_MAP_TILES: