OSDN Git Service

[Fix] #38997 realm-*.c 内参照修正 / Fixed variable references in realm-*.c
authordeskull <deskull@users.sourceforge.jp>
Sat, 4 Jan 2020 17:18:21 +0000 (02:18 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 4 Jan 2020 17:18:21 +0000 (02:18 +0900)
src/realm-hex.c
src/realm-life.c
src/realm-nature.c
src/realm-song.c

index d279d2c..fa24c17 100644 (file)
@@ -1026,7 +1026,7 @@ concptr do_hex_spell(player_type *caster_ptr, SPELL_IDX spell, BIT_FLAGS mode)
                                        if (caster_ptr->current_floor_ptr->grid_array[dy][dx].m_idx) flag = TRUE;
                                }
 
-                               if (!cave_empty_bold(caster_ptr->current_floor_ptr, y, x) || (p_ptr->current_floor_ptr->grid_array[y][x].info & CAVE_ICKY) ||
+                               if (!cave_empty_bold(caster_ptr->current_floor_ptr, y, x) || (caster_ptr->current_floor_ptr->grid_array[y][x].info & CAVE_ICKY) ||
                                        (distance(y, x, caster_ptr->y, caster_ptr->x) > plev + 2))
                                {
                                        msg_print(_("そこには移動できない。", "Can not teleport to there."));
index 9b4d68b..60386e8 100644 (file)
@@ -373,7 +373,7 @@ concptr do_life_spell(player_type *caster_ptr, SPELL_IDX spell, BIT_FLAGS mode)
                {
                        if (cast)
                        {
-                               p_ptr->current_floor_ptr->num_repro += MAX_REPRO;
+                               caster_ptr->current_floor_ptr->num_repro += MAX_REPRO;
                        }
                }
                break;
@@ -418,7 +418,7 @@ concptr do_life_spell(player_type *caster_ptr, SPELL_IDX spell, BIT_FLAGS mode)
                {
                        if (cast)
                        {
-                               wiz_lite(p_ptr, FALSE);
+                               wiz_lite(caster_ptr, FALSE);
                        }
                }
                break;
index cf78b15..24ce242 100644 (file)
@@ -524,7 +524,7 @@ concptr do_nature_spell(player_type *caster_ptr, SPELL_IDX spell, BIT_FLAGS mode
                                fire_ball(caster_ptr, GF_LITE, 0, dam, rad);
                                chg_virtue(caster_ptr, V_KNOWLEDGE, 1);
                                chg_virtue(caster_ptr, V_ENLIGHTEN, 1);
-                               wiz_lite(p_ptr, FALSE);
+                               wiz_lite(caster_ptr, FALSE);
 
                                if ((PRACE_IS_(caster_ptr, RACE_VAMPIRE) || (caster_ptr->mimic_form == MIMIC_VAMPIRE)) && !caster_ptr->resist_lite)
                                {
index 07de5b1..ddb72ea 100644 (file)
@@ -283,7 +283,7 @@ concptr do_music_spell(player_type *caster_ptr, SPELL_IDX spell, BIT_FLAGS mode)
                        {
                                int count = SINGING_COUNT(caster_ptr);
 
-                               if (count >= 19) wiz_lite(p_ptr, FALSE);
+                               if (count >= 19) wiz_lite(caster_ptr, FALSE);
                                if (count >= 11)
                                {
                                        map_area(caster_ptr, rad);