]> granicus.if.org Git - nethack/commitdiff
WIN32: File Save still enabled during #quit disclosure processing
authornethack.allison <nethack.allison>
Sat, 29 Jun 2002 17:43:01 +0000 (17:43 +0000)
committernethack.allison <nethack.allison>
Sat, 29 Jun 2002 17:43:01 +0000 (17:43 +0000)
> Below is the result of your feedback form.  It was submitted by
> <email deleted> 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
win/win32/mhmain.c

index f7c48803a38337525af38cc61016c64239492833..c3568c7a1b6cc44420a5877d7c218ad7863eb2dc 100644 (file)
@@ -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
index fb2563827805a47401c53e6039bed19bca8862ab..92b10bfea0b71c4f393b2f23ed3176a8cf121796 100644 (file)
@@ -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: