OSDN Git Service

[Refactor] #39962 コメント調整 / Adjusted comments
authorHourier <hourier@users.sourceforge.jp>
Tue, 25 Feb 2020 13:13:16 +0000 (22:13 +0900)
committerHourier <hourier@users.sourceforge.jp>
Tue, 25 Feb 2020 13:14:54 +0000 (22:14 +0900)
src/core.h
src/player/player-immunity.c [new file with mode: 0644]
src/player/player-immunity.h [new file with mode: 0644]
src/util.h
src/view/display-player.c

index fc1d58a..633d2fa 100644 (file)
@@ -54,6 +54,7 @@ extern const concptr copyright[5];
 #define SPECIAL_KEY_QUIT     252
 
 /*
+ * todo 双方向の依存性を招いている原因の一旦なので、いずれutil.h など他へ移す.
  * Initialization flags
  */
 #define INIT_NAME_ONLY          0x01
@@ -63,6 +64,7 @@ extern const concptr copyright[5];
 #define INIT_ONLY_FEATURES      0x10
 #define INIT_ONLY_BUILDINGS     0x20
 
+// todo 双方向の依存性を招いている原因の一旦なので、いずれ抹殺する.
 extern int init_flags;
 
 extern concptr ANGBAND_SYS;
diff --git a/src/player/player-immunity.c b/src/player/player-immunity.c
new file mode 100644 (file)
index 0000000..5f28270
--- /dev/null
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/player/player-immunity.h b/src/player/player-immunity.h
new file mode 100644 (file)
index 0000000..5f28270
--- /dev/null
@@ -0,0 +1 @@
+
\ No newline at end of file
index 7b1d96c..ec5fa46 100644 (file)
@@ -337,6 +337,7 @@ extern  u32b _fcreator;
 
 extern const char hexsym[16];
 
+// todo ファイル処理関数・メッセージ処理関数・画面病が関数で最低限分割する.
 extern errr path_parse(char *buf, int max, concptr file);
 extern errr path_build(char *buf, int max, concptr path, concptr file);
 extern FILE *my_fopen(concptr file, concptr mode);
index 7402972..1b33ef4 100644 (file)
@@ -1267,6 +1267,7 @@ void display_player(player_type *creature_ptr, int mode)
 
 
 /*!
+ * todo y = 6、x = 0、mode = 0で固定。何とかする
  * @brief プレイヤーの装備一覧をシンボルで並べる
  * Equippy chars
  * @param creature_ptr プレーヤーへの参照ポインタ
@@ -1277,10 +1278,7 @@ void display_player(player_type *creature_ptr, int mode)
  */
 void display_player_equippy(player_type *creature_ptr, TERM_LEN y, TERM_LEN x, BIT_FLAGS16 mode)
 {
-       /* Weapon flags need only two column */
        int max_i = (mode & DP_WP) ? INVEN_LARM + 1 : INVEN_TOTAL;
-
-       /* Dump equippy chars */
        for (int i = INVEN_RARM; i < max_i; i++)
        {
                object_type *o_ptr;