summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-shoals.cc
diff options
context:
space:
mode:
authorblackcustard <peterwicksstringfield@gmail.com>2013-11-17 13:49:13 -0600
committerNeil Moore <neil@s-z.org>2013-11-22 00:02:22 -0500
commitdedc6d8c295576c69fb32fe4e130cd62da74bada (patch)
tree40b8d1407cf330bcd2cf3198d6245d15ccb99569 /crawl-ref/source/dgn-shoals.cc
parent96fe80a0866f61c716ddd348fcb0e7b5a50733f3 (diff)
downloadcrawl-ref-dedc6d8c295576c69fb32fe4e130cd62da74bada.tar.gz
crawl-ref-dedc6d8c295576c69fb32fe4e130cd62da74bada.zip
Let shoals tides lap past all closed doors sometimes.
For consistency. This code predates runed and sealed doors.
Diffstat (limited to 'crawl-ref/source/dgn-shoals.cc')
-rw-r--r--crawl-ref/source/dgn-shoals.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dgn-shoals.cc b/crawl-ref/source/dgn-shoals.cc
index 7f793df0fa..50c3f37b5c 100644
--- a/crawl-ref/source/dgn-shoals.cc
+++ b/crawl-ref/source/dgn-shoals.cc
@@ -142,7 +142,7 @@ static inline bool _shoals_tide_passable_feat(dungeon_feature_type feat)
// getting through a doorway is this probability * 0.5 --
// see _shoals_apply_tide.
|| feat == DNGN_OPEN_DOOR
- || feat == DNGN_CLOSED_DOOR && one_chance_in(3);
+ || feat_is_closed_door(feat) && one_chance_in(3);
}
static void _shoals_init_heights()