• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision1d33c1ed270476aa408ffa805ac54b8b7f7921b8 (tree)
Time2019-05-08 23:26:02
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 max_f_idx を feature.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -158,7 +158,6 @@ extern bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
158158
159159
160160 extern VAULT_IDX max_v_idx;
161-extern FEAT_IDX max_f_idx;
162161
163162 extern EGO_IDX max_e_idx;
164163 extern int init_flags;
--- a/src/feature.c
+++ b/src/feature.c
@@ -93,6 +93,10 @@ FEAT_IDX feat_wall_inner;
9393 FEAT_IDX feat_wall_solid;
9494 FEAT_IDX feat_ground_type[100], feat_wall_type[100];
9595
96+/*
97+ * Maximum number of terrain features in f_info.txt
98+ */
99+FEAT_IDX max_f_idx;
96100
97101 /*!
98102 * @brief 地形が罠持ちであるかの判定を行う。 / Return TRUE if the given feature is a trap
--- a/src/feature.h
+++ b/src/feature.h
@@ -55,6 +55,8 @@ struct feature_type
5555 SYMBOL_CODE x_char[F_LIT_MAX]; /*!< 設定変更後の地形シンボルアルファベット / Desired feature character */
5656 };
5757
58+extern FEAT_IDX max_f_idx;
59+
5860 extern feature_type *f_info;
5961
6062 extern bool is_closed_door(FEAT_IDX feat);
--- a/src/variable.c
+++ b/src/variable.c
@@ -367,11 +367,6 @@ bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
367367 VAULT_IDX max_v_idx;
368368
369369 /*
370- * Maximum number of terrain features in f_info.txt
371- */
372-FEAT_IDX max_f_idx;
373-
374-/*
375370 * Maximum number of ego-items in e_info.txt
376371 */
377372 EGO_IDX max_e_idx;
Show on old repository browser