• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision3654e9e5fb16b087ecc12c10cbb0ecd79438726f (tree)
Time2019-05-18 19:20:32
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 can_save を core.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/core.c
+++ b/src/core.c
@@ -96,6 +96,8 @@ const concptr copyright[5] =
9696 "are included in all such copies."
9797 };
9898
99+bool can_save = FALSE; /* Game can be saved */
100+
99101 concptr ANGBAND_SYS = "xxx"; //!< Hack -- The special Angband "System Suffix" This variable is used to choose an appropriate "pref-xxx" file
100102
101103 #ifdef JP
--- a/src/core.h
+++ b/src/core.h
@@ -18,6 +18,8 @@ extern concptr ANGBAND_SYS;
1818 extern concptr ANGBAND_KEYBOARD;
1919 extern concptr ANGBAND_GRAF;
2020
21+extern bool can_save;
22+
2123 extern void play_game(bool new_game);
2224 extern s32b turn_real(s32b hoge);
2325 extern void prevent_turn_overflow(void);
--- a/src/externs.h
+++ b/src/externs.h
@@ -81,8 +81,6 @@ extern term *angband_term[8];
8181 extern concptr keymap_act[KEYMAP_MODES][256];
8282 extern player_type *p_ptr;
8383
84-extern bool can_save;
85-
8684 extern MONSTER_IDX pet_t_m_idx;
8785 extern MONSTER_IDX riding_t_m_idx;
8886 extern MONRACE_IDX today_mon;
--- a/src/variable.c
+++ b/src/variable.c
@@ -85,8 +85,6 @@ player_type p_body;
8585 */
8686 player_type *p_ptr = &p_body;
8787
88-bool can_save = FALSE; /* Game can be saved */
89-
9088
9189 MONSTER_IDX pet_t_m_idx;
9290 MONSTER_IDX riding_t_m_idx;
--- a/src/view-mainwindow.c
+++ b/src/view-mainwindow.c
@@ -15,6 +15,7 @@
1515 #include "autopick.h"
1616 #include "term.h"
1717
18+#include "core.h"
1819 #include "files.h"
1920 #include "world.h"
2021 #include "quest.h"
Show on old repository browser