From 8d29a0b2804b29d8a699afe7596475c4f3ff2ed7 Mon Sep 17 00:00:00 2001 From: Deskull Date: Sun, 2 Jul 2017 12:01:12 +0900 Subject: [PATCH] =?utf8?q?(2.2.0.12)=20=E3=82=B7=E3=82=B9=E3=83=86?= =?utf8?q?=E3=83=A0=E4=B8=AD=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3?= =?utf8?q?=E8=A1=A8=E8=A8=98=E3=81=AE=E6=9B=B4=E6=96=B0=E8=87=AA=E5=8B=95?= =?utf8?q?=E5=8C=96=E3=80=82=20/=20Display=20automation=20of=20version=20u?= =?utf8?q?pdate.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/file/news.txt | 8 ++++---- lib/file/news_j.txt | 8 ++++---- src/defines.h | 43 ++++++++++++++++++++++++++----------------- src/init2.c | 23 +++++++++++++++++++++-- 4 files changed, 55 insertions(+), 27 deletions(-) diff --git a/lib/file/news.txt b/lib/file/news.txt index 7fcb648b1..8c37b64d1 100644 --- a/lib/file/news.txt +++ b/lib/file/news.txt @@ -1,7 +1,8 @@ - **************************************** - ** Hengband 2.2.0.10(Develop) ** - **************************************** + + ****************************************** + + ****************************************** Based on Moria: Copyright (c) 1985 Robert Alan Koeneke and Umoria: Copyright (c) 1989 James E. Wilson @@ -14,7 +15,6 @@ ZAngband 2.3.0 - ???: The ZAngband DevTeam ZAngband Jap ver.: Mitsuhiro Itakura - Hengband: Mr.Hoge (echizen @ users.sourceforge.jp) & Many others http://hengband.sourceforge.jp/ diff --git a/lib/file/news_j.txt b/lib/file/news_j.txt index f6016cd6a..d1aca73c7 100644 --- a/lib/file/news_j.txt +++ b/lib/file/news_j.txt @@ -1,7 +1,8 @@ - *************************************** - ** 変愚蛮怒 2.2.0.10(開発版) ** - *************************************** + + ***************************************** + + ***************************************** Based on Moria: Copyright (c) 1985 Robert Alan Koeneke and Umoria: Copyright (c) 1989 James E. Wilson @@ -14,7 +15,6 @@ ZAngband 2.3.0 - ???: The ZAngband DevTeam ZAngband 日本語版: 板倉充洋 < itakura@users.sourceforge.net > - 変愚蛮怒: Mr.hoge (echizen@users.sourceforge.jp) & 多くの方々 http://hengband.sourceforge.jp/ diff --git a/src/defines.h b/src/defines.h index 3ea930454..776ad5b3b 100644 --- a/src/defines.h +++ b/src/defines.h @@ -53,11 +53,18 @@ #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */ #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */ #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */ -#define FAKE_VER_EXTRA 11 /*!< ゲームのバージョン番号定義(エクストラ番号) */ +#define FAKE_VER_EXTRA 12 /*!< ゲームのバージョン番号定義(エクストラ番号) */ + + + /*! + * @brief バージョンが開発版が安定版かを返す + */ +#define IS_STABLE_VERSION (FAKE_VER_MINOR % 2 == 0 && FAKE_VER_EXTRA == 0) /*! * @brief セーブファイル上のバージョン定義(メジャー番号) / "Savefile Version Number" for Hengband 1.1.1 and later * @details + * 当面FAKE_VER_*を参照しておく。 *
  * First three digits may be same as the Program Version.  But not
  * always same.  It means that newer version may preserves lower
@@ -68,10 +75,10 @@
  * Upper compatibility is always guaranteed.
  * 
*/ -#define H_VER_MAJOR 2 /*!< セーブファイル上のバージョン定義(メジャー番号) */ -#define H_VER_MINOR 2 /*!< セーブファイル上のバージョン定義(マイナー番号) */ -#define H_VER_PATCH 0 /*!< セーブファイル上のバージョン定義(パッチ番号) */ -#define H_VER_EXTRA 11 /*!< セーブファイル上のバージョン定義(エクストラ番号) */ +#define H_VER_MAJOR (FAKE_VER_MAJOR-10) /*!< セーブファイル上のバージョン定義(メジャー番号) */ +#define H_VER_MINOR FAKE_VER_MINOR /*!< セーブファイル上のバージョン定義(マイナー番号) */ +#define H_VER_PATCH FAKE_VER_PATCH /*!< セーブファイル上のバージョン定義(パッチ番号) */ +#define H_VER_EXTRA FAKE_VER_EXTRA /*!< セーブファイル上のバージョン定義(エクストラ番号) */ #define ANGBAND_2_8_1 /*!< Angband 2.8.1以降から有効な処理分岐を定義 */ #define ZANGBAND /*!< Zangband 以降から有効な処理分岐を定義 */ @@ -80,55 +87,55 @@ * @brief generate.cで用いられる基本的なブロック数単位(垂直方向) * Number of grids in each block (vertically) Probably hard-coded to 11, see "generate.c" */ -#define BLOCK_HGT 11 +#define BLOCK_HGT 11 /*! * @brief generate.cで用いられる基本的なブロック数単位(水平方向) * Number of grids in each block (horizontally) Probably hard-coded to 11, see "generate.c" */ -#define BLOCK_WID 11 +#define BLOCK_WID 11 /*! * @brief 表示上の基本的なパネル単位(垂直方向、BLOCK_HGTの倍数で設定すること) * Number of grids in each panel (vertically) Must be a multiple of BLOCK_HGT */ -#define PANEL_HGT 11 +#define PANEL_HGT 11 /*! * @brief 表示上の基本的なパネル単位(水平方向、BLOCK_WIDの倍数で設定すること) * Number of grids in each panel (horizontally) Must be a multiple of BLOCK_WID */ -#define PANEL_WID 33 +#define PANEL_WID 33 /*! * @brief 表示上の基本的なブロック単位(垂直方向、PANEL_HGTの倍数で設定すること) * Number of grids used to display the dungeon (vertically). Must be a multiple of 11, probably hard-coded to 22. */ -#define SCREEN_HGT 22 +#define SCREEN_HGT 22 /*! * @brief 表示上の基本的なブロック単位(水平方向、PANEL_WIDの倍数で設定すること) * Number of grids used to display the dungeon (horizontally). Must be a multiple of 33, probably hard-coded to 66. */ -#define SCREEN_WID 66 +#define SCREEN_WID 66 /*! * @brief 表示上のダンジョンの最大垂直サイズ(SCREEN_HGTの3倍が望ましい) * Maximum dungeon height in grids, must be a multiple of SCREEN_HGT, probably hard-coded to SCREEN_HGT * 3. */ -#define MAX_HGT 66 +#define MAX_HGT 66 /*! * @brief 表示上のダンジョンの最大水平サイズ(SCREEN_WIDの3倍が望ましい) * Maximum dungeon width in grids, must be a multiple of SCREEN_WID, probably hard-coded to SCREEN_WID * 3. */ -#define MAX_WID 198 +#define MAX_WID 198 /* * Quest constants */ -#define MIN_RANDOM_QUEST 40 /* MAX_RANDOM_QUEST)) -#define QUEST_TOWER1 5 /* 0 + sprintf(title, _("変愚蛮怒 %d.%d.%d.%d(%s)", "Hengband %d.%d.%d.%d(%s)"), H_VER_MAJOR, H_VER_MINOR, H_VER_PATCH, H_VER_EXTRA, +#else + sprintf(title, _("変愚蛮怒 %d.%d.%d(%s)", "Hengband %d.%d.%d(%s)"), H_VER_MAJOR, H_VER_MINOR, H_VER_PATCH, +#endif + IS_STABLE_VERSION ? _("安定版", "Stable") : _("開発版", "Developing")); + col = (80 - strlen(title)) / 2; + col = col < 0 ? 0 : col; + prt(title, VER_INFO_ROW, col); +} + +/*! * @brief サムチェック情報を出力 / Get check sum in string form * @return サムチェック情報の文字列 */ -- 2.11.0