OSDN Git Service

[Refactor] #37353 max_floor_id を floor-save.c/h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Sun, 12 May 2019 01:39:26 +0000 (10:39 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 12 May 2019 01:39:26 +0000 (10:39 +0900)
src/externs.h
src/floor-save.c
src/floor-save.h
src/variable.c

index b5a063e..330d5bc 100644 (file)
@@ -102,7 +102,6 @@ extern concptr *quark__str;
 
 extern term *angband_term[8];
 
-extern FLOOR_IDX max_floor_id;
 extern u32b saved_floor_file_sign;
 extern concptr keymap_act[KEYMAP_MODES][256];
 extern player_type *p_ptr;
index d4d8a4a..2dd4e2f 100644 (file)
@@ -39,6 +39,10 @@ static FLOOR_IDX new_floor_id;  /*!<次のフロアのID / floor_id of the desti
 static u32b change_floor_mode;  /*!<フロア移行処理に関するフラグ / Mode flags for changing floor */
 static u32b latest_visit_mark;  /*!<フロアを渡った回数?(確認中) / Max number of visit_mark */
 
+/*
+ * Number of floor_id used from birth
+ */
+FLOOR_IDX max_floor_id;
 
 /*!
  * @brief 保存フロア配列を初期化する / Initialize saved_floors array. 
index 99a7b05..7de0bdf 100644 (file)
@@ -22,3 +22,4 @@ extern saved_floor_type *get_sf_ptr(FLOOR_IDX floor_id);
 extern FLOOR_IDX get_new_floor_id(void);
 extern void prepare_change_floor_mode(BIT_FLAGS mode);
 extern void precalc_cur_num_of_pet(void);
+extern FLOOR_IDX max_floor_id;
\ No newline at end of file
index b6d7546..7ea8b71 100644 (file)
@@ -137,11 +137,6 @@ concptr *quark__str;
 term *angband_term[8];
 
 /*
- * Number of floor_id used from birth
- */
-FLOOR_IDX max_floor_id;
-
-/*
  * Sign for current process used in temporal files.
  * Actually it is the start time of current process.
  */