• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisionf02bbc6fa5c67cde269588d28351723b219abf12 (tree)
Time2019-02-05 00:19:45
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Fix] #37353 VC++のC4100警告修正。 / Fix C4100 VC++ warning .

Change Summary

Incremental Difference

--- a/src/cmd2.c
+++ b/src/cmd2.c
@@ -65,12 +65,12 @@ bool cmd_limit_cast(player_type *creature_ptr)
6565 msg_print(NULL);
6666 return TRUE;
6767 }
68- else if (p_ptr->anti_magic)
68+ else if (creature_ptr->anti_magic)
6969 {
7070 msg_print(_("反魔法バリアが魔法を邪魔した!", "An anti-magic shell disrupts your magic!"));
7171 return TRUE;
7272 }
73- else if (p_ptr->shero)
73+ else if (creature_ptr->shero)
7474 {
7575 msg_format(_("狂戦士化していて頭が回らない!", "You cannot think directly!"));
7676 return TRUE;
@@ -81,7 +81,7 @@ bool cmd_limit_cast(player_type *creature_ptr)
8181
8282 bool cmd_limit_confused(player_type *creature_ptr)
8383 {
84- if (p_ptr->confused)
84+ if (creature_ptr->confused)
8585 {
8686 msg_print(_("混乱していてできない!", "You are too confused!"));
8787 return TRUE;
@@ -91,7 +91,7 @@ bool cmd_limit_confused(player_type *creature_ptr)
9191
9292 bool cmd_limit_arena(player_type *creature_ptr)
9393 {
94- if (p_ptr->inside_arena)
94+ if (creature_ptr->inside_arena)
9595 {
9696 msg_print(_("アリーナが魔法を吸収した!", "The arena absorbs all attempted magic!"));
9797 msg_print(NULL);
--- a/src/player-status.c
+++ b/src/player-status.c
@@ -3815,10 +3815,10 @@ bool player_has_no_spellbooks(void)
38153815
38163816 void take_turn(player_type *creature_ptr, PERCENTAGE need_cost)
38173817 {
3818- p_ptr->energy_use = (ENERGY)need_cost;
3818+ creature_ptr->energy_use = (ENERGY)need_cost;
38193819 }
38203820
38213821 void free_turn(player_type *creature_ptr)
38223822 {
3823- p_ptr->energy_use = 0;
3823+ creature_ptr->energy_use = 0;
38243824 }
--- a/src/spells-status.c
+++ b/src/spells-status.c
@@ -179,10 +179,10 @@ bool time_walk(player_type *creature_ptr)
179179 msg_print(NULL);
180180
181181 /* Hack */
182- p_ptr->energy_need -= 1000 + (100 + p_ptr->csp - 50)*TURNS_PER_TICK / 10;
183- p_ptr->redraw |= (PR_MAP);
184- p_ptr->update |= (PU_MONSTERS);
185- p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
182+ creature_ptr->energy_need -= 1000 + (100 + p_ptr->csp - 50)*TURNS_PER_TICK / 10;
183+ creature_ptr->redraw |= (PR_MAP);
184+ creature_ptr->update |= (PU_MONSTERS);
185+ creature_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
186186 handle_stuff();
187187 return TRUE;
188188 }
--- a/src/spells2.c
+++ b/src/spells2.c
@@ -928,9 +928,9 @@ bool cleansing_nova(player_type *creature_ptr, bool magic, bool powerful)
928928 bool unleash_mana_storm(player_type *creature_ptr, bool powerful)
929929 {
930930 msg_print(_("強力な魔力が敵を引き裂いた!", "Mighty magics rend your enemies!"));
931- project(0, (powerful ? 7 : 5), p_ptr->y, p_ptr->x,
931+ project(0, (powerful ? 7 : 5), creature_ptr->y, creature_ptr->x,
932932 (randint1(200) + (powerful ? 500 : 300)) * 2, GF_MANA, PROJECT_KILL | PROJECT_ITEM | PROJECT_GRID, -1);
933- if ((p_ptr->pclass != CLASS_MAGE) && (p_ptr->pclass != CLASS_HIGH_MAGE) && (p_ptr->pclass != CLASS_SORCERER) && (p_ptr->pclass != CLASS_MAGIC_EATER) && (p_ptr->pclass != CLASS_BLUE_MAGE))
933+ if ((creature_ptr->pclass != CLASS_MAGE) && (creature_ptr->pclass != CLASS_HIGH_MAGE) && (creature_ptr->pclass != CLASS_SORCERER) && (creature_ptr->pclass != CLASS_MAGIC_EATER) && (creature_ptr->pclass != CLASS_BLUE_MAGE))
934934 {
935935 (void)take_hit(DAMAGE_NOESCAPE, 50, _("コントロールし難い強力な魔力の解放", "unleashing magics too mighty to control"), -1);
936936 }
@@ -5176,11 +5176,11 @@ bool sword_dancing(player_type *creature_ptr)
51765176 bool confusing_light(player_type *creature_ptr)
51775177 {
51785178 msg_print(_("辺りを睨んだ...", "You glare nearby monsters..."));
5179- slow_monsters(p_ptr->lev);
5180- stun_monsters(p_ptr->lev * 4);
5181- confuse_monsters(p_ptr->lev * 4);
5182- turn_monsters(p_ptr->lev * 4);
5183- stasis_monsters(p_ptr->lev * 4);
5179+ slow_monsters(creature_ptr->lev);
5180+ stun_monsters(creature_ptr->lev * 4);
5181+ confuse_monsters(creature_ptr->lev * 4);
5182+ turn_monsters(creature_ptr->lev * 4);
5183+ stasis_monsters(creature_ptr->lev * 4);
51845184 return TRUE;
51855185 }
51865186
Show on old repository browser