From cb671fe808c9b720be133f0e2f9e6593a4c287fe Mon Sep 17 00:00:00 2001 From: Deskull Date: Fri, 30 Jun 2017 21:57:49 +0900 Subject: [PATCH] =?utf8?q?(2.2.0.10)=20=E6=89=93=E6=92=83=E5=91=A8?= =?utf8?q?=E3=82=8A=E3=81=AE=E8=87=B4=E5=91=BD=E7=9A=84=E3=81=AA=E3=82=A8?= =?utf8?q?=E3=83=B3=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3=E3=80=82E?= =?utf8?q?XTRA=E7=95=AA=E5=8F=B7=E4=BB=98=E3=81=8D=E3=83=90=E3=83=BC?= =?utf8?q?=E3=82=B8=E3=83=A7=E3=83=B3=E3=81=8C=E9=96=8B=E7=99=BA=E7=89=88?= =?utf8?q?=E3=81=A7=E3=81=82=E3=82=8B=E3=81=93=E3=81=A8=E3=82=92=E6=98=8E?= =?utf8?q?=E8=A8=98=E3=80=82=20/=20Fix=20fatal=20bug=20of=20melee=20by=20r?= =?utf8?q?efactoring.=20Display=20that=20extra=20version=20number=20was=20?= =?utf8?q?contained=20in=20development=20version.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/file/news.txt | 2 +- lib/file/news_j.txt | 2 +- src/defines.h | 4 ++-- src/melee1.c | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/file/news.txt b/lib/file/news.txt index 585bebe24..7fcb648b1 100644 --- a/lib/file/news.txt +++ b/lib/file/news.txt @@ -1,6 +1,6 @@ **************************************** - ** Hengband 2.2.0 ** + ** Hengband 2.2.0.10(Develop) ** **************************************** Based on Moria: Copyright (c) 1985 Robert Alan Koeneke diff --git a/lib/file/news_j.txt b/lib/file/news_j.txt index 2081b855f..f6016cd6a 100644 --- a/lib/file/news_j.txt +++ b/lib/file/news_j.txt @@ -1,6 +1,6 @@ *************************************** - ** 変愚蛮怒 2.2.0 ** + ** 変愚蛮怒 2.2.0.10(開発版) ** *************************************** Based on Moria: Copyright (c) 1985 Robert Alan Koeneke diff --git a/src/defines.h b/src/defines.h index 1d3d32bab..0cc0c436c 100644 --- a/src/defines.h +++ b/src/defines.h @@ -53,7 +53,7 @@ #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */ #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */ #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */ -#define FAKE_VER_EXTRA 9 /*!< ゲームのバージョン番号定義(エクストラ番号) */ +#define FAKE_VER_EXTRA 10 /*!< ゲームのバージョン番号定義(エクストラ番号) */ /*! * @brief セーブファイル上のバージョン定義(メジャー番号) / "Savefile Version Number" for Hengband 1.1.1 and later @@ -71,7 +71,7 @@ #define H_VER_MAJOR 2 /*!< セーブファイル上のバージョン定義(メジャー番号) */ #define H_VER_MINOR 2 /*!< セーブファイル上のバージョン定義(マイナー番号) */ #define H_VER_PATCH 0 /*!< セーブファイル上のバージョン定義(パッチ番号) */ -#define H_VER_EXTRA 9 /*!< セーブファイル上のバージョン定義(エクストラ番号) */ +#define H_VER_EXTRA 10 /*!< セーブファイル上のバージョン定義(エクストラ番号) */ #define ANGBAND_2_8_1 /*!< Angband 2.8.1以降から有効な処理分岐を定義 */ #define ZANGBAND /*!< Zangband 以降から有効な処理分岐を定義 */ diff --git a/src/melee1.c b/src/melee1.c index f9fe40118..973f6e110 100644 --- a/src/melee1.c +++ b/src/melee1.c @@ -1648,7 +1648,7 @@ bool make_attack_normal(int m_idx) } /* Apply the cut */ - if (k) (void)set_cut(p_ptr->cut + cut_plus); + if (cut_plus) (void)set_cut(p_ptr->cut + cut_plus); } /* Handle stun */ @@ -1669,11 +1669,11 @@ bool make_attack_normal(int m_idx) case 4: stun_plus = randint1(15) + 30; break; case 5: stun_plus = randint1(20) + 40; break; case 6: stun_plus = 80; break; - default: k = 150; break; + default: stun_plus = 150; break; } /* Apply the stun */ - if (k) (void)set_stun(p_ptr->stun + k); + if (stun_plus) (void)set_stun(p_ptr->stun + stun_plus); } if (explode) -- 2.11.0