summaryrefslogtreecommitdiff
path: root/src/q_troll.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-02 21:53:11 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-02 22:08:27 +0200
commit6eb6d9b8aa702f333d480158265cc0c3a469a0c9 (patch)
treea8d164a36e347a73413997600d2d3e866de5a3b8 /src/q_troll.c
parent9bbfe24fccd16a17c89f9222ded38aa5a220c4f6 (diff)
Refactor: Clean up process_dungeon_file()
Diffstat (limited to 'src/q_troll.c')
-rw-r--r--src/q_troll.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/q_troll.c b/src/q_troll.c
index 4a193079..c314d2a7 100644
--- a/src/q_troll.c
+++ b/src/q_troll.c
@@ -26,9 +26,7 @@ bool_ quest_troll_gen_hook(char *fmt)
get_mon_num_prep();
init_flags = INIT_CREATE_DUNGEON;
- process_dungeon_file_full = TRUE;
- process_dungeon_file(NULL, "trolls.map", &ystart, &xstart, cur_hgt, cur_wid, TRUE);
- process_dungeon_file_full = FALSE;
+ process_dungeon_file("trolls.map", &ystart, &xstart, cur_hgt, cur_wid, TRUE, TRUE);
for (x = 3; x < xstart; x++)
for (y = 3; y < ystart; y++)
@@ -140,9 +138,7 @@ bool_ quest_troll_death_hook(char *fmt)
}
init_flags = INIT_GET_SIZE;
- process_dungeon_file_full = TRUE;
- process_dungeon_file(NULL, "trolls.map", &ystart, &xstart, cur_hgt, cur_wid, TRUE);
- process_dungeon_file_full = FALSE;
+ process_dungeon_file("trolls.map", &ystart, &xstart, cur_hgt, cur_wid, TRUE, TRUE);
if (cquest.data[0]) return FALSE;