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/spells3.cc | |
parent | ebc402cfa4182a50f46ac2d56e3b74c5372eed84 (diff) |
Rework FF1_* flags to flags_set<>
Diffstat (limited to 'src/spells3.cc')
-rw-r--r-- | src/spells3.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/spells3.cc b/src/spells3.cc index b5a767c5..fad11049 100644 --- a/src/spells3.cc +++ b/src/spells3.cc @@ -3,6 +3,7 @@ #include "cave.hpp" #include "cave_type.hpp" #include "cmd5.hpp" +#include "feature_flag.hpp" #include "feature_type.hpp" #include "lua_bind.hpp" #include "mimic.hpp" @@ -2738,8 +2739,8 @@ casting_result tempo_magelock() c_ptr = &cave[y][x]; - if ((!(f_info[c_ptr->feat].flags1 | FF1_FLOOR)) || - (f_info[c_ptr->feat].flags1 | FF1_PERMANENT) || + if ((!(f_info[c_ptr->feat].flags | FF_FLOOR)) || + (f_info[c_ptr->feat].flags | FF_PERMANENT) || (!los(p_ptr->py, p_ptr->px, y, x))) { msg_print("You cannot place it there."); |