OSDN Git Service

[Refactor] #39912 geometry.c で使われていないインクルードを削除 / Removed unused inclusion in geometry.c
authorHourier <hourier@users.sourceforge.jp>
Sat, 22 Feb 2020 09:05:59 +0000 (18:05 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 22 Feb 2020 09:05:59 +0000 (18:05 +0900)
src/geometry.c

index 4ab44b3..572fe9f 100644 (file)
@@ -1,7 +1,5 @@
 #include "angband.h"
 #include "floor.h"
-#include "spells.h"
-
 
 /*!
  * キーパッドの方向を南から反時計回り順に列挙 / Global array for looping through the "keypad directions"
@@ -33,7 +31,6 @@ const POSITION ddx_ddd[9] =
 const POSITION ddy_ddd[9] =
 { 1, -1, 0, 0, 1, 1, -1, -1, 0 };
 
-
 /*!
  * キーパッドの円環状方向配列 / Circular keypad direction array
  */
@@ -92,6 +89,7 @@ POSITION distance(POSITION y1, POSITION x1, POSITION y2, POSITION x2)
        return d;
 }
 
+
 /*!
  * @brief プレイヤーから指定の座標がどの方角にあるかを返す /
  * Convert an adjacent location to a direction.
@@ -112,7 +110,6 @@ DIRECTION coords_to_dir(player_type *creature_ptr, POSITION y, POSITION x)
 }
 
 
-
 /*!
  * @brief 指定された座標をプレイヤーが視覚に収められるかを返す。 / Can the player "see" the given grid in detail?
  * @param y y座標
@@ -177,6 +174,7 @@ bool player_can_see_bold(player_type *creature_ptr, POSITION y, POSITION x)
        return check_local_illumination(creature_ptr, y, x);
 }
 
+
 /*
  * Calculate "incremental motion". Used by project() and shoot().
  * Assumes that (*y,*x) lies on the path from (y1,x1) to (y2,x2).
@@ -195,7 +193,6 @@ void mmove2(POSITION *y, POSITION *x, POSITION y1, POSITION x1, POSITION y2, POS
        /* We are calculating the next location */
        dist++;
 
-
        /* Calculate the total distance along each axis */
        dy = (y2 < y1) ? (y1 - y2) : (y2 - y1);
        dx = (x2 < x1) ? (x1 - x2) : (x2 - x1);
@@ -230,4 +227,3 @@ void mmove2(POSITION *y, POSITION *x, POSITION y1, POSITION x1, POSITION y2, POS
                (*x) = (x2 < x1) ? (x1 - dist) : (x1 + dist);
        }
 }
-