diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-08-30 22:58:24 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-08-31 00:09:03 +0200 |
commit | 57aec7d2a0ae1095fb1babd8f0fcc276927bf8e5 (patch) | |
tree | 49101ac1f89ecfc1dfd662ff9dd1af5d2e96f003 /crawl-ref/source/view.cc | |
parent | 4a749203263be27ef869e3921ea9628be4b04cfc (diff) | |
download | crawl-ref-57aec7d2a0ae1095fb1babd8f0fcc276927bf8e5.tar.gz crawl-ref-57aec7d2a0ae1095fb1babd8f0fcc276927bf8e5.zip |
Runed doors.
They're meant to stop autoexplore, and maybe request a confirmation for
being opened. This is not yet implemented, but we can use them for
converting secret doors that were used for marking a place as interesting.
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 78f7d2c3e4..e2c2784ad5 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -458,13 +458,13 @@ bool magic_mapping(int map_radius, int proportion, bool suppress_msg, bool open = true; - if (feat_is_solid(feat) && feat != DNGN_CLOSED_DOOR) + if (feat_is_solid(feat) && !feat_is_closed_door(feat)) { open = false; for (adjacent_iterator ai(*ri); ai; ++ai) { if (map_bounds(*ai) && (!feat_is_opaque(grd(*ai)) - || grd(*ai)) == DNGN_CLOSED_DOOR) + || feat_is_closed_door(grd(*ai)))) { open = true; break; |