From cf174d71d2b56fb40248d96707090a484b4957fc Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 15 Feb 2019 19:20:25 +0100 Subject: Search/replace bool_ with bool We also search/replace TRUE/FALSE with their bool equivalents. --- src/q_dragons.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/q_dragons.cc') diff --git a/src/q_dragons.cc b/src/q_dragons.cc index 9892bc79..6a4a19dd 100644 --- a/src/q_dragons.cc +++ b/src/q_dragons.cc @@ -30,7 +30,7 @@ static bool quest_dragons_gen_hook(void *, void *in_, void *) int xstart = 2; int ystart = 2; - if (p_ptr->inside_quest != QUEST_DRAGONS) return FALSE; + if (p_ptr->inside_quest != QUEST_DRAGONS) return false; /* Just in case we didnt talk the the mayor */ if (cquest.status == QUEST_STATUS_UNTAKEN) @@ -54,7 +54,7 @@ static bool quest_dragons_gen_hook(void *, void *in_, void *) get_mon_num_prep(); init_flags = INIT_CREATE_DUNGEON; - process_dungeon_file("dragons.map", &ystart, &xstart, cur_hgt, cur_wid, TRUE, FALSE); + process_dungeon_file("dragons.map", &ystart, &xstart, cur_hgt, cur_wid, true, false); in->dungeon_flags_ref |= DF_NO_GENO; /* Place some columns */ @@ -105,16 +105,16 @@ static bool quest_dragons_gen_hook(void *, void *in_, void *) } } - process_hooks_restart = TRUE; + process_hooks_restart = true; - return TRUE; + return true; } static bool quest_dragons_death_hook(void *, void *, void *) { int i, mcnt = 0; - if (p_ptr->inside_quest != QUEST_DRAGONS) return FALSE; + if (p_ptr->inside_quest != QUEST_DRAGONS) return false; /* Process the monsters (backwards) */ for (i = m_max - 1; i >= 1; i--) @@ -140,7 +140,7 @@ static bool quest_dragons_death_hook(void *, void *, void *) quest[p_ptr->inside_quest].status = QUEST_STATUS_COMPLETED; del_hook_new(HOOK_MONSTER_DEATH, quest_dragons_death_hook); del_hook_new(HOOK_GEN_QUEST, quest_dragons_gen_hook); - process_hooks_restart = TRUE; + process_hooks_restart = true; cmsg_print(TERM_YELLOW, "Gondolin is safer now."); return false; -- cgit v1.2.3