diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-21 21:17:20 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-21 21:17:20 +0200 |
commit | 3966bfb2f6836d13c1a93bfab1e9fa61ec4fff35 (patch) | |
tree | 589a331cab87e338882269d257048e6792f2c072 /src/q_fireprof.cc | |
parent | ebc402cfa4182a50f46ac2d56e3b74c5372eed84 (diff) |
Rework FF1_* flags to flags_set<>
Diffstat (limited to 'src/q_fireprof.cc')
-rw-r--r-- | src/q_fireprof.cc | 5 |
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; |