• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionad596e3a983a5356ee119b62e20fdaf007d67dd1 (tree)
Time2019-05-03 17:43:33
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 feature_* 変数のいくつかを feature.h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -251,10 +251,6 @@ extern concptr screen_dump;
251251
252252
253253 extern DEPTH *max_dlv;
254-extern FEAT_IDX feat_wall_outer;
255-extern FEAT_IDX feat_wall_inner;
256-extern FEAT_IDX feat_wall_solid;
257-extern FEAT_IDX feat_ground_type[100], feat_wall_type[100];
258254 extern COMMAND_CODE now_message;
259255 extern bool use_menu;
260256
--- a/src/feature.c
+++ b/src/feature.c
@@ -88,6 +88,12 @@ FEAT_IDX feat_swamp;
8888 /* Unknown grid (not detected) */
8989 FEAT_IDX feat_undetected;
9090
91+FEAT_IDX feat_wall_outer;
92+FEAT_IDX feat_wall_inner;
93+FEAT_IDX feat_wall_solid;
94+FEAT_IDX feat_ground_type[100], feat_wall_type[100];
95+
96+
9197 /*!
9298 * @brief 地形が罠持ちであるかの判定を行う。 / Return TRUE if the given feature is a trap
9399 * @param feat 地形情報のID
--- a/src/feature.h
+++ b/src/feature.h
@@ -111,3 +111,8 @@ extern FEAT_IDX feat_tree;
111111 extern FEAT_IDX feat_mountain;
112112 extern FEAT_IDX feat_swamp;
113113 extern FEAT_IDX feat_undetected;
114+
115+extern FEAT_IDX feat_wall_outer;
116+extern FEAT_IDX feat_wall_inner;
117+extern FEAT_IDX feat_wall_solid;
118+extern FEAT_IDX feat_ground_type[100], feat_wall_type[100];
--- a/src/variable.c
+++ b/src/variable.c
@@ -557,11 +557,6 @@ concptr screen_dump = NULL;
557557 */
558558 DEPTH *max_dlv;
559559
560-FEAT_IDX feat_wall_outer;
561-FEAT_IDX feat_wall_inner;
562-FEAT_IDX feat_wall_solid;
563-FEAT_IDX feat_ground_type[100], feat_wall_type[100];
564-
565560 COMMAND_CODE now_message;
566561 bool use_menu;
567562
Show on old repository browser