• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionddf7c0f6fe2a64d97653c2d650c390eef293d441 (tree)
Time2019-06-11 20:17:51
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 repair_monsters, repair_objects を core.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/core.c
+++ b/src/core.c
@@ -105,6 +105,9 @@ bool can_save = FALSE; /* Game can be saved */
105105
106106 COMMAND_CODE now_message;
107107
108+bool repair_monsters; /* Hack -- optimize detect monsters */
109+bool repair_objects; /* Hack -- optimize detect objects */
110+
108111 concptr ANGBAND_SYS = "xxx"; //!< Hack -- The special Angband "System Suffix" This variable is used to choose an appropriate "pref-xxx" file
109112
110113 #ifdef JP
--- a/src/core.h
+++ b/src/core.h
@@ -75,6 +75,9 @@ extern concptr ANGBAND_GRAF;
7575 extern bool can_save;
7676 extern COMMAND_CODE now_message;
7777
78+extern bool repair_monsters;
79+extern bool repair_objects;
80+
7881 extern void play_game(bool new_game);
7982 extern void update_playtime(void);
8083 extern s32b turn_real(s32b hoge);
--- a/src/externs.h
+++ b/src/externs.h
@@ -20,8 +20,3 @@
2020 #include "object.h"
2121 #include "player-status.h"
2222
23-
24-/* variable.c */
25-
26-extern bool repair_monsters;
27-extern bool repair_objects;
--- a/src/floor-save.c
+++ b/src/floor-save.c
@@ -12,6 +12,7 @@
1212
1313 #include "angband.h"
1414 #include "bldg.h"
15+#include "core.h"
1516 #include "load.h"
1617 #include "util.h"
1718
--- a/src/monster2.c
+++ b/src/monster2.c
@@ -12,6 +12,7 @@
1212
1313 #include "angband.h"
1414 #include "util.h"
15+#include "core.h"
1516
1617 #include "cmd-dump.h"
1718 #include "cmd-pet.h"
--- a/src/variable.c
+++ b/src/variable.c
@@ -13,6 +13,3 @@
1313 #include "angband.h"
1414 #include "geometry.h"
1515
16-
17-bool repair_monsters; /* Hack -- optimize detect monsters */
18-bool repair_objects; /* Hack -- optimize detect objects */
Show on old repository browser