OSDN Git Service

[Refactor] #37353 is_seen() を geometry.h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Sat, 8 Jun 2019 11:50:18 +0000 (20:50 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 8 Jun 2019 11:50:18 +0000 (20:50 +0900)
src/defines.h
src/geometry.h

index 89277cf..dfb628c 100644 (file)
 
 /*** Screen Locations ***/
 
-/*
- * Is the monster seen by the player?
- */
-#define is_seen(A) \
-       ((bool)((A)->ml && (!ignore_unview || p_ptr->inside_battle || \
-        (player_can_see_bold((A)->fy, (A)->fx) && projectable(p_ptr->y, p_ptr->x, (A)->fy, (A)->fx)))))
-
-
 /* Maximum "Nazguls" number */
 #define MAX_NAZGUL_NUM 5
 
index 0887f82..ad126b4 100644 (file)
@@ -79,4 +79,10 @@ struct coord
        POSITION x;
 };
 
+/*
+ * Is the monster seen by the player?
+ */
+#define is_seen(A) \
+       ((bool)((A)->ml && (!ignore_unview || p_ptr->inside_battle || \
+        (player_can_see_bold((A)->fy, (A)->fx) && projectable(p_ptr->y, p_ptr->x, (A)->fy, (A)->fx)))))