summaryrefslogtreecommitdiff
path: root/src/q_evil.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-21 21:17:20 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-21 21:17:20 +0200
commit3966bfb2f6836d13c1a93bfab1e9fa61ec4fff35 (patch)
tree589a331cab87e338882269d257048e6792f2c072 /src/q_evil.cc
parentebc402cfa4182a50f46ac2d56e3b74c5372eed84 (diff)
Rework FF1_* flags to flags_set<>
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;
}