diff options
author | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
commit | cf174d71d2b56fb40248d96707090a484b4957fc (patch) | |
tree | ca2666f5f0aabca22b45f2f87baf19be296ac0af /src/q_dragons.cc | |
parent | 79d1633d51015b2a9224dece9da083ff1ab8b7c2 (diff) |
Search/replace bool_ with bool
We also search/replace TRUE/FALSE with their bool equivalents.
Diffstat (limited to 'src/q_dragons.cc')
-rw-r--r-- | src/q_dragons.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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; |