summaryrefslogtreecommitdiff
path: root/src/q_fireprof.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/q_fireprof.cc')
-rw-r--r--src/q_fireprof.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/q_fireprof.cc b/src/q_fireprof.cc
index 777ce690..fe635971 100644
--- a/src/q_fireprof.cc
+++ b/src/q_fireprof.cc
@@ -2,6 +2,7 @@
#include "cave_type.hpp"
#include "dungeon_flag.hpp"
+#include "feature_flag.hpp"
#include "feature_type.hpp"
#include "hook_get_in.hpp"
#include "hooks.hpp"
@@ -531,8 +532,8 @@ static bool_ fireproof_gen_hook(void *, void *, void *)
cave_type *c_ptr = &cave[trap_y][trap_x];
/* are the coordinates on a stair, or a wall? */
- if (((f_info[c_ptr->feat].flags1 & FF1_PERMANENT) != 0) ||
- ((f_info[c_ptr->feat].flags1 & FF1_FLOOR) == 0))
+ if (bool(f_info[c_ptr->feat].flags & FF_PERMANENT) ||
+ (f_info[c_ptr->feat].flags & FF_FLOOR).empty())
{
/* try again */
tries = 0;