From b7e614fae5e2886b779d482401abdf26e3fb1e9a Mon Sep 17 00:00:00 2001 From: Deskull Date: Sat, 19 Jan 2019 20:57:09 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20=E5=9E=8B=E3=81=AE?= =?utf8?q?=E7=BD=AE=E6=8F=9B(QUEST=5FIDX)=20/=20Type=20replacement.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/bldg.c | 16 ++++++++-------- src/cmd4.c | 15 +++++++-------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/src/bldg.c b/src/bldg.c index 5430c53d8..e0a0e87e9 100644 --- a/src/bldg.c +++ b/src/bldg.c @@ -2021,7 +2021,7 @@ static bool inn_comm(int cmd) static void get_questinfo(IDX questnum, bool do_init) { int i; - IDX old_quest; + QUEST_IDX old_quest; GAME_TEXT tmp_str[80]; /* Clear the text */ @@ -2064,10 +2064,10 @@ static void get_questinfo(IDX questnum, bool do_init) */ static void castle_quest(void) { - IDX q_index = 0; - monster_race *r_ptr; - quest_type *q_ptr; - concptr name; + QUEST_IDX q_index = 0; + monster_race *r_ptr; + quest_type *q_ptr; + concptr name; clear_bldg(4, 18); @@ -3744,9 +3744,9 @@ static bool research_mon(void) MONSTER_IDX *who; /* XTRA HACK WHATSEARCH */ - bool all = FALSE; - bool uniq = FALSE; - bool norm = FALSE; + bool all = FALSE; + bool uniq = FALSE; + bool norm = FALSE; char temp[80] = ""; /* XTRA HACK REMEMBER_IDX */ diff --git a/src/cmd4.c b/src/cmd4.c index ac7a1c282..9d67df204 100644 --- a/src/cmd4.c +++ b/src/cmd4.c @@ -387,7 +387,7 @@ errr do_cmd_write_nikki(int type, int num, concptr note) type == NIKKI_RAND_QUEST_F || type == NIKKI_TO_QUEST) { - IDX old_quest; + QUEST_IDX old_quest; old_quest = p_ptr->inside_quest; p_ptr->inside_quest = (quest[num].type == QUEST_TYPE_RANDOM) ? 0 : num; @@ -3219,7 +3219,7 @@ void do_cmd_visuals(void) case '4': { static concptr choice_msg = _("モンスターの[色/文字]を変更します", "Change monster attr/chars"); - static IDX r = 0; + static MONRACE_IDX r = 0; prt(format(_("コマンド: %s", "Command: %s"), choice_msg), 15, 0); @@ -7584,9 +7584,8 @@ static void do_cmd_knowledge_virtues(void) } /* -* Dungeon -* -*/ + * Dungeon + */ static void do_cmd_knowledge_dungeon(void) { FILE *fff; @@ -7685,7 +7684,7 @@ static void do_cmd_knowledge_quests_current(FILE *fff) char rand_tmp_str[120] = "\0"; GAME_TEXT name[MAX_NLEN]; monster_race *r_ptr; - IDX i; + QUEST_IDX i; int rand_level = 100; int total = 0; @@ -7698,7 +7697,7 @@ static void do_cmd_knowledge_quests_current(FILE *fff) (quest[i].status == QUEST_STATUS_COMPLETED)) { /* Set the quest number temporary */ - IDX old_quest = p_ptr->inside_quest; + QUEST_IDX old_quest = p_ptr->inside_quest; int j; /* Clear the text */ @@ -8063,7 +8062,7 @@ static void do_cmd_knowledge_quests(void) fd_kill(file_name); /* Free Memory */ - C_KILL(quest_num, max_q_idx, IDX); + C_KILL(quest_num, max_q_idx, QUEST_IDX); } -- 2.11.0