OSDN Git Service

右上のxやファイル(F)メニューの終了(X)が実行された場合の動作をctrl+xを押した場合と同じ動作に変更.
author_nothere <_nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 20 Apr 2002 18:38:50 +0000 (18:38 +0000)
committer_nothere <_nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 20 Apr 2002 18:38:50 +0000 (18:38 +0000)
src/main-win.c

index 6e6d47c..baf2aca 100644 (file)
@@ -3361,15 +3361,14 @@ 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);
+                               /* do_cmd_save_game(FALSE); */
 #else /* ZANGBAND */
-                               do_cmd_save_game();
+                               /* do_cmd_save_game(); */
 #endif /* ZANGBAND */
+                               Term_key_push(KTRL('X'));
+                               break;
                        }
                        quit(NULL);
                        break;
@@ -4061,15 +4060,14 @@ 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);
+                               /* do_cmd_save_game(FALSE); */
 #else /* ZANGBAND */
-                               do_cmd_save_game();
+                               /* do_cmd_save_game(); */
 #endif /* ZANGBAND */
+                               Term_key_push(KTRL('X'));
+                               return 0;
                        }
                        quit(NULL);
                        return 0;