summaryrefslogtreecommitdiff
path: root/src/q_evil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/q_evil.cc')
-rw-r--r--src/q_evil.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/q_evil.cc b/src/q_evil.cc
index 5e93bdf1..d27e8986 100644
--- a/src/q_evil.cc
+++ b/src/q_evil.cc
@@ -3,6 +3,7 @@
#include "cave.hpp"
#include "cave_type.hpp"
#include "dungeon_flag.hpp"
+#include "feature_flag.hpp"
#include "feature_type.hpp"
#include "hook_quest_finish_in.hpp"
#include "hooks.hpp"
@@ -53,13 +54,12 @@ static bool_ quest_evil_gen_hook(void *, void *, void *)
/* Place some random balrogs */
for (i = 6; i > 0; )
{
- int m_idx, flags;
y = rand_int(21) + 3;
x = rand_int(31) + 3;
- flags = f_info[cave[y][x].feat].flags1;
- if (!(flags & FF1_PERMANENT) && (flags & FF1_FLOOR))
+ auto const flags = f_info[cave[y][x].feat].flags;
+ if (!(flags & FF_PERMANENT) && (flags & FF_FLOOR))
{
- m_idx = place_monster_one(y, x, 996, 0, FALSE, MSTATUS_ENEMY);
+ int m_idx = place_monster_one(y, x, 996, 0, FALSE, MSTATUS_ENEMY);
if (m_idx) m_list[m_idx].mflag |= MFLAG_QUEST;
--i;
}