OSDN Git Service

[Refactor] #37353 player-item.c/hにref_item()を追加。
[hengband/hengband.git] / src / mind.c
index 9585fa7..9395e99 100644 (file)
@@ -740,8 +740,6 @@ static bool_hack get_mind_power(SPELL_IDX *sn, bool only_browse)
        /* Assume cancelled */
        *sn = (-1);
 
-#ifdef ALLOW_REPEAT /* TNB */
-
        /* Get the spell, if available */
 
        if (repeat_pull(&code))
@@ -759,8 +757,6 @@ static bool_hack get_mind_power(SPELL_IDX *sn, bool only_browse)
                }
        }
 
-#endif /* ALLOW_REPEAT -- TNB */
-
     /* Nothing chosen yet */
     flag = FALSE;
 
@@ -1007,7 +1003,6 @@ static bool_hack get_mind_power(SPELL_IDX *sn, bool only_browse)
        /* Show choices */
        p_ptr->window |= (PW_SPELL);
 
-       /* Window stuff */
        window_stuff();
 
        /* Abort if needed */
@@ -1016,12 +1011,8 @@ static bool_hack get_mind_power(SPELL_IDX *sn, bool only_browse)
        /* Save the choice */
        (*sn) = i;
 
-#ifdef ALLOW_REPEAT /* TNB */
-
        repeat_push((COMMAND_CODE)i);
 
-#endif /* ALLOW_REPEAT -- TNB */
-
        /* Success */
        return (TRUE);
 }
@@ -1196,7 +1187,6 @@ static bool cast_mindcrafter_spell(int spell)
                /* Update monsters */
                p_ptr->update |= (PU_MONSTERS);
 
-               /* Window stuff */
                p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
 
                handle_stuff();
@@ -1510,7 +1500,7 @@ static bool cast_berserk_spell(int spell)
                        return FALSE;
                }
 
-               if (!get_rep_dir2(&dir)) return FALSE;
+               if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
 
                if (dir == 5) return FALSE;
                y = p_ptr->y + ddy[dir];
@@ -1541,7 +1531,7 @@ static bool cast_berserk_spell(int spell)
        }
        case 2:
        {
-               if (!get_rep_dir2(&dir)) return FALSE;
+               if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
                y = p_ptr->y + ddy[dir];
                x = p_ptr->x + ddx[dir];
                move_player(dir, easy_disarm, TRUE);
@@ -2101,7 +2091,6 @@ void do_cmd_mind(void)
        /* Redraw mana */
        p_ptr->redraw |= (PR_MANA);
 
-       /* Window stuff */
        p_ptr->window |= (PW_PLAYER);
        p_ptr->window |= (PW_SPELL);
 }