• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision0a459f41b01be87b48f8a6ae7662192170f789dc (tree)
Time2019-05-12 10:39:26
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 max_floor_id を floor-save.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -102,7 +102,6 @@ extern concptr *quark__str;
102102
103103 extern term *angband_term[8];
104104
105-extern FLOOR_IDX max_floor_id;
106105 extern u32b saved_floor_file_sign;
107106 extern concptr keymap_act[KEYMAP_MODES][256];
108107 extern player_type *p_ptr;
--- a/src/floor-save.c
+++ b/src/floor-save.c
@@ -39,6 +39,10 @@ static FLOOR_IDX new_floor_id; /*!<次のフロアのID / floor_id of the desti
3939 static u32b change_floor_mode; /*!<フロア移行処理に関するフラグ / Mode flags for changing floor */
4040 static u32b latest_visit_mark; /*!<フロアを渡った回数?(確認中) / Max number of visit_mark */
4141
42+/*
43+ * Number of floor_id used from birth
44+ */
45+FLOOR_IDX max_floor_id;
4246
4347 /*!
4448 * @brief 保存フロア配列を初期化する / Initialize saved_floors array.
--- a/src/floor-save.h
+++ b/src/floor-save.h
@@ -22,3 +22,4 @@ extern saved_floor_type *get_sf_ptr(FLOOR_IDX floor_id);
2222 extern FLOOR_IDX get_new_floor_id(void);
2323 extern void prepare_change_floor_mode(BIT_FLAGS mode);
2424 extern void precalc_cur_num_of_pet(void);
25+extern FLOOR_IDX max_floor_id;
\ No newline at end of file
--- a/src/variable.c
+++ b/src/variable.c
@@ -137,11 +137,6 @@ concptr *quark__str;
137137 term *angband_term[8];
138138
139139 /*
140- * Number of floor_id used from birth
141- */
142-FLOOR_IDX max_floor_id;
143-
144-/*
145140 * Sign for current process used in temporal files.
146141 * Actually it is the start time of current process.
147142 */
Show on old repository browser