• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisionc57f31c38edde2e14a26ef08b054063706991f81 (tree)
Time2019-06-08 20:50:18
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 is_seen() を geometry.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -40,14 +40,6 @@
4040
4141 /*** Screen Locations ***/
4242
43-/*
44- * Is the monster seen by the player?
45- */
46-#define is_seen(A) \
47- ((bool)((A)->ml && (!ignore_unview || p_ptr->inside_battle || \
48- (player_can_see_bold((A)->fy, (A)->fx) && projectable(p_ptr->y, p_ptr->x, (A)->fy, (A)->fx)))))
49-
50-
5143 /* Maximum "Nazguls" number */
5244 #define MAX_NAZGUL_NUM 5
5345
--- a/src/geometry.h
+++ b/src/geometry.h
@@ -79,4 +79,10 @@ struct coord
7979 POSITION x;
8080 };
8181
82+/*
83+ * Is the monster seen by the player?
84+ */
85+#define is_seen(A) \
86+ ((bool)((A)->ml && (!ignore_unview || p_ptr->inside_battle || \
87+ (player_can_see_bold((A)->fy, (A)->fx) && projectable(p_ptr->y, p_ptr->x, (A)->fy, (A)->fx)))))
8288
Show on old repository browser