• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision0c52178f5249764ac2cf09e3a65a2e01da30455b (tree)
Time2019-05-13 21:35:03
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 leaving_quest を quest.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -66,7 +66,6 @@ extern bool repair_objects;
6666 extern MONSTER_IDX hack_m_idx;
6767 extern MONSTER_IDX hack_m_idx_ii;
6868 extern int total_friends;
69-extern int leaving_quest;
7069 extern bool reinit_wilderness;
7170 extern bool multi_rew;
7271 extern bool reset_concent;
--- a/src/player-status.c
+++ b/src/player-status.c
@@ -1,6 +1,7 @@
11 #include "angband.h"
22 #include "util.h"
33
4+#include "quest.h"
45 #include "player-move.h"
56 #include "player-status.h"
67 #include "player-effects.h"
--- a/src/quest.c
+++ b/src/quest.c
@@ -18,6 +18,7 @@ quest_type *quest; /*!< Quest info */
1818 QUEST_IDX max_q_idx; /*!< Maximum number of quests */
1919 char quest_text[10][80]; /*!< Quest text */
2020 int quest_text_line; /*!< Current line of the quest text */
21+int leaving_quest = 0;
2122
2223 /*!
2324 * @brief クエスト突入時のメッセージテーブル / Array of places to find an inscription
--- a/src/quest.h
+++ b/src/quest.h
@@ -83,6 +83,7 @@ extern quest_type *quest;
8383 extern QUEST_IDX max_q_idx;
8484 extern char quest_text[10][80];
8585 extern int quest_text_line;
86+extern int leaving_quest;
8687
8788 extern void determine_random_questor(quest_type *q_ptr);
8889 extern void complete_quest(QUEST_IDX quest_num);
--- a/src/variable.c
+++ b/src/variable.c
@@ -45,7 +45,7 @@ MONSTER_IDX hack_m_idx_ii = 0;
4545 bool multi_rew = FALSE;
4646
4747 int total_friends = 0;
48-int leaving_quest = 0;
48+
4949 bool reinit_wilderness = FALSE;
5050
5151 /*
Show on old repository browser