OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
[hengband/hengband.git] / src / shoot.c
index 0ff5f9e..e4045bc 100644 (file)
@@ -1,6 +1,8 @@
 #include "angband.h"
 #include "projection.h"
 #include "monster-status.h"
+#include "artifact.h"
+#include "avatar.h"
 
 /*!
  * @brief 矢弾を射撃した際のスレイ倍率をかけた結果を返す /
@@ -310,7 +312,7 @@ static s16b tot_dam_aux_shot(object_type *o_ptr, int tdam, monster_type *m_ptr)
 
 
 /*!
- * @brief 射撃処理のサブルーチン /
+ * @brief 射撃処理実行 /
  * Fire an object from the pack or floor.
  * @param item 射撃するオブジェクトの所持ID
  * @param j_ptr 射撃武器のオブジェクト参照ポインタ
@@ -333,7 +335,7 @@ static s16b tot_dam_aux_shot(object_type *o_ptr, int tdam, monster_type *m_ptr)
  * Note that Bows of "Extra Shots" give an extra shot.
  * </pre>
  */
-void do_cmd_fire_aux(INVENTORY_IDX item, object_type *j_ptr)
+void exe_fire(INVENTORY_IDX item, object_type *j_ptr)
 {
        DIRECTION dir;
        int i;
@@ -493,7 +495,6 @@ void do_cmd_fire_aux(INVENTORY_IDX item, object_type *j_ptr)
                sound(SOUND_SHOOT);
                handle_stuff();
 
-               /* Save the old location */
                prev_y = y;
                prev_x = x;
 
@@ -584,7 +585,6 @@ void do_cmd_fire_aux(INVENTORY_IDX item, object_type *j_ptr)
                                lite_spot(ny, nx);
                        }
 
-                       /* Save the old location */
                        prev_y = y;
                        prev_x = x;