diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-11 14:02:31 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-11 14:02:31 +0200 |
commit | 0c8f6b4214ac63ec9eb54968d21f38be997a9981 (patch) | |
tree | 3d4dfca181aa62497e73b759a6c9235d53f196f7 /crawl-ref/source/view.cc | |
parent | 77587839e0e17de5b94c9a0431dd0c0692efa76a (diff) | |
download | crawl-ref-0c8f6b4214ac63ec9eb54968d21f38be997a9981.tar.gz crawl-ref-0c8f6b4214ac63ec9eb54968d21f38be997a9981.zip |
Drop the code for displaying/handling/etc secret doors.
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index a4584e5ce7..435b0124bd 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -428,13 +428,7 @@ static std::auto_ptr<FixedArray<bool, GXM, GYM> > _tile_detectability() (*map)(p) = true; - if (grd(p) == DNGN_SECRET_DOOR) - { - reveal_secret_door(p); - continue; - } - - if (grd(p) < DNGN_MINSEE && !feat_is_closed_door(grd(p))) + if (grd(p) < DNGN_MINSEE && grd(p) != DNGN_CLOSED_DOOR) continue; for (int dy = -1; dy <= 1; ++dy) @@ -513,13 +507,13 @@ bool magic_mapping(int map_radius, int proportion, bool suppress_msg, bool open = true; - if (feat_is_solid(feat) && !feat_is_closed_door(feat)) + if (feat_is_solid(feat) && feat != DNGN_CLOSED_DOOR) { open = false; for (adjacent_iterator ai(*ri); ai; ++ai) { if (map_bounds(*ai) && (!feat_is_opaque(grd(*ai)) - || feat_is_closed_door(grd(*ai)))) + || grd(*ai)) == DNGN_CLOSED_DOOR) { open = true; break; |