summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pathfind.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-11 14:02:31 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-11 14:02:31 +0200
commit0c8f6b4214ac63ec9eb54968d21f38be997a9981 (patch)
tree3d4dfca181aa62497e73b759a6c9235d53f196f7 /crawl-ref/source/mon-pathfind.cc
parent77587839e0e17de5b94c9a0431dd0c0692efa76a (diff)
downloadcrawl-ref-0c8f6b4214ac63ec9eb54968d21f38be997a9981.tar.gz
crawl-ref-0c8f6b4214ac63ec9eb54968d21f38be997a9981.zip
Drop the code for displaying/handling/etc secret doors.
Diffstat (limited to 'crawl-ref/source/mon-pathfind.cc')
-rw-r--r--crawl-ref/source/mon-pathfind.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/mon-pathfind.cc b/crawl-ref/source/mon-pathfind.cc
index cee7639fbd..9726017dfb 100644
--- a/crawl-ref/source/mon-pathfind.cc
+++ b/crawl-ref/source/mon-pathfind.cc
@@ -454,11 +454,8 @@ int monster_pathfind::mons_travel_cost(coord_def npos)
ASSERT(grid_distance(pos, npos) <= 1);
// Doors need to be opened.
- if (feat_is_closed_door(grd(npos)) || grd(npos) == DNGN_SECRET_DOOR
- && env.markers.property_at(npos, MAT_ANY, "door_restrict") != "veto")
- {
+ if (grd(npos) == DNGN_CLOSED_DOOR)
return 2;
- }
const monster_type mt = mons_base_type(mons);
const bool ground_level = !mons_airborne(mt, -1, false)