• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision0c34d00691b952d2d6d2873c7d49b3817581fb3c (tree)
Time2019-05-08 23:20:52
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 max_d_idx を dungeon.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/birth.c
+++ b/src/birth.c
@@ -18,6 +18,7 @@
1818 #include "artifact.h"
1919 #include "avatar.h"
2020 #include "cmd-dump.h"
21+#include "dungeon.h"
2122 #include "history.h"
2223 #include "monsterrace-hook.h"
2324 #include "store.h"
--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -8,3 +8,7 @@ dungeon_type *d_info;
88 char *d_name;
99 char *d_text;
1010
11+/*
12+ * Maximum number of dungeon in d_info.txt
13+ */
14+DUNGEON_IDX max_d_idx;
--- a/src/dungeon.h
+++ b/src/dungeon.h
@@ -55,6 +55,7 @@ struct dungeon_type {
5555 int obj_good;
5656 };
5757
58+extern DUNGEON_IDX max_d_idx;
5859 extern dungeon_type *d_info;
5960 extern char *d_name;
6061 extern char *d_text;
\ No newline at end of file
--- a/src/externs.h
+++ b/src/externs.h
@@ -161,7 +161,6 @@ extern VAULT_IDX max_v_idx;
161161 extern FEAT_IDX max_f_idx;
162162
163163 extern EGO_IDX max_e_idx;
164-extern DUNGEON_IDX max_d_idx;
165164 extern int init_flags;
166165 extern int highscore_fd;
167166 extern bool can_save;
--- a/src/main-win.c
+++ b/src/main-win.c
@@ -117,6 +117,7 @@
117117 #include <locale.h>
118118 #include "z-term.h"
119119 #include "save.h"
120+#include "dungeon.h"
120121
121122 /*
122123 * Extract the "WIN32" flag from the compiler
--- a/src/save.c
+++ b/src/save.c
@@ -18,6 +18,7 @@
1818
1919 #include "artifact.h"
2020 #include "sort.h"
21+#include "dungeon.h"
2122 #include "quest.h"
2223 #include "store.h"
2324 #include "wild.h"
--- a/src/variable.c
+++ b/src/variable.c
@@ -377,11 +377,6 @@ FEAT_IDX max_f_idx;
377377 EGO_IDX max_e_idx;
378378
379379 /*
380- * Maximum number of dungeon in e_info.txt
381- */
382-DUNGEON_IDX max_d_idx;
383-
384-/*
385380 * Flags for initialization
386381 */
387382 int init_flags;
Show on old repository browser