OSDN Git Service

Windowsで, ファイル(F)メニューの終了(X)や右上の[x]で終了させた場合にplayrecordに残らなかったので, それも残るようにした.
author_nothere <_nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 20 Apr 2002 16:32:37 +0000 (16:32 +0000)
committer_nothere <_nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 20 Apr 2002 16:32:37 +0000 (16:32 +0000)
src/main-win.c

index 068d886..6e6d47c 100644 (file)
@@ -3346,7 +3346,7 @@ static void process_menus(WORD wCmd)
                                if (!can_save)
                                {
 #ifdef JP
-                               plog("º£¤Ï½ªÎ»¤Ç¤­¤Þ¤»¤ó¡£");
+                                       plog("º£¤Ï½ªÎ»¤Ç¤­¤Þ¤»¤ó¡£");
 #else
                                        plog("You may not do that right now.");
 #endif
@@ -3361,6 +3361,9 @@ static void process_menus(WORD wCmd)
                                forget_view();
                                clear_mon_lite();
 
+                               /* For writing the playrecord, not for saving the game */
+                               do_cmd_save_and_exit();
+
                                /* Save the game */
 #ifdef ZANGBAND
                                do_cmd_save_game(FALSE);
@@ -4043,7 +4046,11 @@ LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
                        {
                                if (!can_save)
                                {
+#ifdef JP
+                                       plog("º£¤Ï½ªÎ»¤Ç¤­¤Þ¤»¤ó¡£");
+#else
                                        plog("You may not do that right now.");
+#endif
                                        return 0;
                                }
 
@@ -4054,6 +4061,9 @@ LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg,
                                forget_view();
                                clear_mon_lite();
 
+                               /* For writing the playrecord, not for saving the game */
+                               do_cmd_save_and_exit();
+
                                /* Save the game */
 #ifdef ZANGBAND
                                do_cmd_save_game(FALSE);