リビジョン | 9625dd05676cd56a91b715b73288f4139cd8a6bc (tree) |
---|---|
日時 | 2017-07-14 23:58:13 |
作者 | Deskull <desull@user...> |
コミッター | Deskull |
#37287 (2.2.0.31) do-spell.c内のC4457警告に対応。 / Deal C4457 warning in do-spell.c.
@@ -53,7 +53,7 @@ | ||
53 | 53 | #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */ |
54 | 54 | #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */ |
55 | 55 | #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */ |
56 | -#define FAKE_VER_EXTRA 30 /*!< ゲームのバージョン番号定義(エクストラ番号) */ | |
56 | +#define FAKE_VER_EXTRA 31 /*!< ゲームのバージョン番号定義(エクストラ番号) */ | |
57 | 57 | |
58 | 58 | |
59 | 59 | /*! |
@@ -3173,14 +3173,14 @@ static cptr do_chaos_spell(int spell, int mode) | ||
3173 | 3173 | { |
3174 | 3174 | if (cast) |
3175 | 3175 | { |
3176 | - u32b mode = 0L; | |
3176 | + u32b flg = 0L; | |
3177 | 3177 | bool pet = !one_in_(3); |
3178 | 3178 | |
3179 | - if (pet) mode |= PM_FORCE_PET; | |
3180 | - else mode |= PM_NO_PET; | |
3181 | - if (!(pet && (plev < 50))) mode |= PM_ALLOW_GROUP; | |
3179 | + if (pet) flg |= PM_FORCE_PET; | |
3180 | + else flg |= PM_NO_PET; | |
3181 | + if (!(pet && (plev < 50))) flg |= PM_ALLOW_GROUP; | |
3182 | 3182 | |
3183 | - if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, (plev * 3) / 2, SUMMON_DEMON, mode)) | |
3183 | + if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, (plev * 3) / 2, SUMMON_DEMON, flg)) | |
3184 | 3184 | { |
3185 | 3185 | msg_print(_("硫黄の悪臭が充満した。", "The area fills with a stench of sulphur and brimstone.")); |
3186 | 3186 | if (pet) |
@@ -3865,17 +3865,17 @@ static cptr do_death_spell(int spell, int mode) | ||
3865 | 3865 | { |
3866 | 3866 | int type; |
3867 | 3867 | bool pet = one_in_(3); |
3868 | - u32b mode = 0L; | |
3868 | + u32b flg = 0L; | |
3869 | 3869 | |
3870 | 3870 | type = (plev > 47 ? SUMMON_HI_UNDEAD : SUMMON_UNDEAD); |
3871 | 3871 | |
3872 | 3872 | if (!pet || (pet && (plev > 24) && one_in_(3))) |
3873 | - mode |= PM_ALLOW_GROUP; | |
3873 | + flg |= PM_ALLOW_GROUP; | |
3874 | 3874 | |
3875 | - if (pet) mode |= PM_FORCE_PET; | |
3876 | - else mode |= (PM_ALLOW_UNIQUE | PM_NO_PET); | |
3875 | + if (pet) flg |= PM_FORCE_PET; | |
3876 | + else flg |= (PM_ALLOW_UNIQUE | PM_NO_PET); | |
3877 | 3877 | |
3878 | - if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, (plev * 3) / 2, type, mode)) | |
3878 | + if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, (plev * 3) / 2, type, flg)) | |
3879 | 3879 | { |
3880 | 3880 | msg_print(_("冷たい風があなたの周りに吹き始めた。それは腐敗臭を運んでいる...", |
3881 | 3881 | "Cold winds begin to blow around you, carrying with them the stench of decay...")); |
@@ -6044,13 +6044,13 @@ static cptr do_daemon_spell(int spell, int mode) | ||
6044 | 6044 | if (cast) |
6045 | 6045 | { |
6046 | 6046 | bool pet = !one_in_(3); |
6047 | - u32b mode = 0L; | |
6047 | + u32b flg = 0L; | |
6048 | 6048 | |
6049 | - if (pet) mode |= PM_FORCE_PET; | |
6050 | - else mode |= PM_NO_PET; | |
6051 | - if (!(pet && (plev < 50))) mode |= PM_ALLOW_GROUP; | |
6049 | + if (pet) flg |= PM_FORCE_PET; | |
6050 | + else flg |= PM_NO_PET; | |
6051 | + if (!(pet && (plev < 50))) flg |= PM_ALLOW_GROUP; | |
6052 | 6052 | |
6053 | - if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, plev*2/3+randint1(plev/2), SUMMON_DEMON, mode)) | |
6053 | + if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, plev*2/3+randint1(plev/2), SUMMON_DEMON, flg)) | |
6054 | 6054 | { |
6055 | 6055 | msg_print(_("硫黄の悪臭が充満した。", "The area fills with a stench of sulphur and brimstone.")); |
6056 | 6056 |
@@ -6784,13 +6784,13 @@ static cptr do_crusade_spell(int spell, int mode) | ||
6784 | 6784 | if (cast) |
6785 | 6785 | { |
6786 | 6786 | bool pet = !one_in_(3); |
6787 | - u32b mode = 0L; | |
6787 | + u32b flg = 0L; | |
6788 | 6788 | |
6789 | - if (pet) mode |= PM_FORCE_PET; | |
6790 | - else mode |= PM_NO_PET; | |
6791 | - if (!(pet && (plev < 50))) mode |= PM_ALLOW_GROUP; | |
6789 | + if (pet) flg |= PM_FORCE_PET; | |
6790 | + else flg |= PM_NO_PET; | |
6791 | + if (!(pet && (plev < 50))) flg |= PM_ALLOW_GROUP; | |
6792 | 6792 | |
6793 | - if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, (plev * 3) / 2, SUMMON_ANGEL, mode)) | |
6793 | + if (summon_specific((pet ? -1 : 0), p_ptr->y, p_ptr->x, (plev * 3) / 2, SUMMON_ANGEL, flg)) | |
6794 | 6794 | { |
6795 | 6795 | if (pet) |
6796 | 6796 | { |
@@ -9005,7 +9005,7 @@ static cptr do_hex_spell(int spell, int mode) | ||
9005 | 9005 | } |
9006 | 9006 | else |
9007 | 9007 | { |
9008 | - int power = 0; | |
9008 | + int curse_rank = 0; | |
9009 | 9009 | msg_format(_("恐怖の暗黒オーラがあなたの%sを包み込んだ!", "A terrible black aura blasts your %s!"), o_name); |
9010 | 9010 | o_ptr->curse_flags |= (TRC_CURSED); |
9011 | 9011 |
@@ -9022,11 +9022,11 @@ static cptr do_hex_spell(int spell, int mode) | ||
9022 | 9022 | add_flag(o_ptr->art_flags, TR_VORPAL); |
9023 | 9023 | add_flag(o_ptr->art_flags, TR_VAMPIRIC); |
9024 | 9024 | msg_print(_("血だ!血だ!血だ!", "Blood, Blood, Blood!")); |
9025 | - power = 2; | |
9025 | + power = curse_rank; | |
9026 | 9026 | } |
9027 | 9027 | } |
9028 | 9028 | |
9029 | - o_ptr->curse_flags |= get_curse(power, o_ptr); | |
9029 | + o_ptr->curse_flags |= get_curse(curse_rank, o_ptr); | |
9030 | 9030 | } |
9031 | 9031 | |
9032 | 9032 | p_ptr->update |= (PU_BONUS); |
@@ -9311,7 +9311,7 @@ static cptr do_hex_spell(int spell, int mode) | ||
9311 | 9311 | } |
9312 | 9312 | else |
9313 | 9313 | { |
9314 | - int power = 0; | |
9314 | + int curse_rank = 0; | |
9315 | 9315 | msg_format(_("恐怖の暗黒オーラがあなたの%sを包み込んだ!", "A terrible black aura blasts your %s!"), o_name); |
9316 | 9316 | o_ptr->curse_flags |= (TRC_CURSED); |
9317 | 9317 |
@@ -9329,11 +9329,11 @@ static cptr do_hex_spell(int spell, int mode) | ||
9329 | 9329 | add_flag(o_ptr->art_flags, TR_RES_DARK); |
9330 | 9330 | add_flag(o_ptr->art_flags, TR_RES_NETHER); |
9331 | 9331 | msg_print(_("血だ!血だ!血だ!", "Blood, Blood, Blood!")); |
9332 | - power = 2; | |
9332 | + curse_rank = 2; | |
9333 | 9333 | } |
9334 | 9334 | } |
9335 | 9335 | |
9336 | - o_ptr->curse_flags |= get_curse(power, o_ptr); | |
9336 | + o_ptr->curse_flags |= get_curse(curse_rank, o_ptr); | |
9337 | 9337 | } |
9338 | 9338 | |
9339 | 9339 | p_ptr->update |= (PU_BONUS); |