• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision3f65bf1e4987bce6e1d2959cc0c681f6002708ad (tree)
Time2019-05-01 13:46:43
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 saved_floor_type を floor-save.h に移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -13,6 +13,7 @@
1313 * (z-virt.h, z-util.h, z-form.h, term.h, random.h)
1414 */
1515 #include "geometry.h"
16+#include "floor-save.h"
1617
1718 /*
1819 * Automatically generated "variable" declarations
--- a/src/floor-save.h
+++ b/src/floor-save.h
@@ -1,5 +1,19 @@
11 #pragma once
22
3+/*
4+ * A structure type for the saved floor
5+ */
6+typedef struct
7+{
8+ FLOOR_IDX floor_id; /* No recycle until 65536 IDs are all used */
9+ s16b savefile_id; /* ID for savefile (from 0 to MAX_SAVED_FLOOR) */
10+ DEPTH dun_level;
11+ s32b last_visit; /* Time count of last visit. 0 for new floor. */
12+ u32b visit_mark; /* Older has always smaller mark. */
13+ FLOOR_IDX upper_floor_id; /* a floor connected with level teleportation */
14+ FLOOR_IDX lower_floor_id; /* a floor connected with level tel. and trap door */
15+} saved_floor_type;
16+
317 extern void init_saved_floors(bool force);
418 extern void change_floor(void);
519 extern void leave_floor(void);
--- a/src/floor.c
+++ b/src/floor.c
@@ -1,5 +1,6 @@
11 #include "angband.h"
22 #include "floor.h"
3+#include "floor-save.h"
34
45 /*
56 * The array of "current_floor_ptr->grid_array grids" [MAX_WID][MAX_HGT].
--- a/src/types.h
+++ b/src/types.h
@@ -1682,21 +1682,6 @@ typedef struct {
16821682
16831683
16841684 /*
1685- * A structure type for the saved floor
1686- */
1687-typedef struct
1688-{
1689- FLOOR_IDX floor_id; /* No recycle until 65536 IDs are all used */
1690- s16b savefile_id; /* ID for savefile (from 0 to MAX_SAVED_FLOOR) */
1691- DEPTH dun_level;
1692- s32b last_visit; /* Time count of last visit. 0 for new floor. */
1693- u32b visit_mark; /* Older has always smaller mark. */
1694- FLOOR_IDX upper_floor_id; /* a floor connected with level teleportation */
1695- FLOOR_IDX lower_floor_id; /* a floor connected with level tel. and trap door */
1696-} saved_floor_type;
1697-
1698-
1699-/*
17001685 * A structure type for terrain template of saving dungeon floor
17011686 */
17021687 typedef struct
Show on old repository browser