OSDN Git Service

[Refactor] #37353 ZANGBAND のプリプロを削除 / Removed preprocessor ZANGBAND
authorHourier <hourier@users.sourceforge.jp>
Sat, 25 Jan 2020 16:12:55 +0000 (01:12 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 25 Jan 2020 16:12:55 +0000 (01:12 +0900)
src/core.h
src/h-define.h
src/main-win.c

index 86beb4f..fc1d58a 100644 (file)
@@ -45,8 +45,6 @@ extern const concptr copyright[5];
 #define H_VER_PATCH FAKE_VER_PATCH /*!< セーブファイル上のバージョン定義(パッチ番号) */
 #define H_VER_EXTRA FAKE_VER_EXTRA /*!< セーブファイル上のバージョン定義(エクストラ番号) */
 
-#define ZANGBAND /*!< Zangband 以降から有効な処理分岐を定義 */
-
 /*
  * Special internal key
  */
index 74d58fe..25cf762 100644 (file)
 
 
 /**** Simple "Macros" ****/
-
-#ifdef ZANGBAND_JP
-#define lbtokg(x) ((int)(((x)*4536)/1000)) /*!< Zangband基準のポンド→キログラム変換定義(全体) */
-#define lbtokg1(x) ((lbtokg(x)+5)/100) /*!< Zangband基準のポンド→キログラム変換定義(整数部) */
-#define lbtokg2(x) ( ( (lbtokg(x)+5)%100)/10)  /*!< Zangband基準のポンド→キログラム変換定義(少数部) */
-#elif defined(JP)
+#ifdef JP
 #define lbtokg(x) ((int)((x)*5)) /*!< 変愚蛮怒基準のポンド→キログラム変換定義(全体) */
 #define lbtokg1(x) (lbtokg(x)/100) /*!< 変愚蛮怒基準のポンド→キログラム変換定義(整数部) */
 #define lbtokg2(x) ((lbtokg(x)%100)/10)  /*!< 変愚蛮怒基準のポンド→キログラム変換定義(少数部) */
index 6054c94..0bf770d 100644 (file)
@@ -3556,11 +3556,7 @@ static void process_menus(player_type *player_ptr, WORD wCmd)
                        msg_flag = FALSE;
 
                        /* Save the game */
-#ifdef ZANGBAND
                        do_cmd_save_game(player_ptr, FALSE);
-#else /* ZANGBAND */
-                       do_cmd_save_game();
-#endif /* ZANGBAND */
                }
                else
                {
@@ -3586,12 +3582,6 @@ static void process_menus(player_type *player_ptr, WORD wCmd)
                        forget_view(player_ptr->current_floor_ptr);
                        clear_mon_lite(player_ptr->current_floor_ptr);
 
-                       /* Save the game */
-#ifdef ZANGBAND
-                               /* do_cmd_save_game(FALSE); */
-#else /* ZANGBAND */
-                               /* do_cmd_save_game(); */
-#endif /* ZANGBAND */
                        Term_key_push(SPECIAL_KEY_QUIT);
                        break;
                }
@@ -4482,12 +4472,6 @@ LRESULT FAR PASCAL AngbandWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lP
                        forget_view(p_ptr->current_floor_ptr);
                        clear_mon_lite(p_ptr->current_floor_ptr);
 
-                       /* Save the game */
-#ifdef ZANGBAND
-                               /* do_cmd_save_game(FALSE); */
-#else /* ZANGBAND */
-                               /* do_cmd_save_game(); */
-#endif /* ZANGBAND */
                        Term_key_push(SPECIAL_KEY_QUIT);
                        return 0;
                }