summaryrefslogtreecommitdiff
path: root/src/q_nirna.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/q_nirna.cc')
-rw-r--r--src/q_nirna.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/q_nirna.cc b/src/q_nirna.cc
index 822d8b6c..a036bfa3 100644
--- a/src/q_nirna.cc
+++ b/src/q_nirna.cc
@@ -10,6 +10,7 @@
#include "tables.hpp"
#include "util.hpp"
#include "variable.hpp"
+#include "z-term.hpp"
#define cquest (quest[QUEST_NIRNAETH])
@@ -35,13 +36,13 @@ static bool quest_nirnaeth_gen_hook(void *, void *, void *)
dun_level = quest[p_ptr->inside_quest].level;
/* Set the correct monster hook */
- set_mon_num_hook();
+ reset_get_monster_hook();
/* Prepare allocation table */
get_mon_num_prep();
init_flags = INIT_CREATE_DUNGEON;
- process_dungeon_file("nirnaeth.map", &ystart, &xstart, cur_hgt, cur_wid, TRUE, TRUE);
+ process_dungeon_file("nirnaeth.map", &ystart, &xstart, cur_hgt, cur_wid, true, true);
/* Count the number of monsters */
cquest.data[0] = 0;
@@ -92,14 +93,14 @@ static bool quest_nirnaeth_finish_hook(void *, void *in_, void *)
*(quest[q_idx].plot) = QUEST_NULL;
del_hook_new(HOOK_QUEST_FINISH, quest_nirnaeth_finish_hook);
- process_hooks_restart = TRUE;
+ process_hooks_restart = true;
return true;
}
static bool quest_nirnaeth_death_hook(void *, void *, void *)
{
- if (p_ptr->inside_quest != QUEST_NIRNAETH) return FALSE;
+ if (p_ptr->inside_quest != QUEST_NIRNAETH) return false;
cquest.data[1]++;
@@ -122,7 +123,7 @@ static bool quest_nirnaeth_stair_hook(void *, void *, void *)
cquest.status = QUEST_STATUS_COMPLETED;
del_hook_new(HOOK_STAIR, quest_nirnaeth_stair_hook);
- process_hooks_restart = TRUE;
+ process_hooks_restart = true;
return false;
}