OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6363e4c
)
[Fix] #38997 spells2.c 内変数参照修正 / Fix variable references in spells2.c
author
Hourier
<hourier@users.sourceforge.jp>
Tue, 7 Jan 2020 12:12:35 +0000
(21:12 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Tue, 7 Jan 2020 12:12:35 +0000
(21:12 +0900)
src/spells2.c
patch
|
blob
|
history
diff --git
a/src/spells2.c
b/src/spells2.c
index
d518fd5
..
fa05e7f
100644
(file)
--- a/
src/spells2.c
+++ b/
src/spells2.c
@@
-4471,7
+4471,7
@@
bool double_attack(player_type *creature_ptr)
bool comvert_hp_to_mp(player_type *creature_ptr)
{
bool comvert_hp_to_mp(player_type *creature_ptr)
{
- int gain_sp = take_hit(
p
_ptr, DAMAGE_USELIFE, creature_ptr->lev, _("HPからMPへの無謀な変換", "thoughtless convertion from HP to SP"), -1) / 5;
+ int gain_sp = take_hit(
creature
_ptr, DAMAGE_USELIFE, creature_ptr->lev, _("HPからMPへの無謀な変換", "thoughtless convertion from HP to SP"), -1) / 5;
if (gain_sp)
{
creature_ptr->csp += gain_sp;
if (gain_sp)
{
creature_ptr->csp += gain_sp;
@@
-4496,7
+4496,7
@@
bool comvert_mp_to_hp(player_type *creature_ptr)
if (creature_ptr->csp >= creature_ptr->lev / 5)
{
creature_ptr->csp -= creature_ptr->lev / 5;
if (creature_ptr->csp >= creature_ptr->lev / 5)
{
creature_ptr->csp -= creature_ptr->lev / 5;
- hp_player(
p
_ptr, creature_ptr->lev);
+ hp_player(
creature
_ptr, creature_ptr->lev);
}
else
{
}
else
{
@@
-4528,7
+4528,7
@@
bool mirror_concentration(player_type *creature_ptr)
return FALSE;
}
return FALSE;
}
- if (is_mirror_grid(&
p
_ptr->current_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x]))
+ if (is_mirror_grid(&
creature
_ptr->current_floor_ptr->grid_array[creature_ptr->y][creature_ptr->x]))
{
msg_print(_("少し頭がハッキリした。", "You feel your head clear a little."));
{
msg_print(_("少し頭がハッキリした。", "You feel your head clear a little."));