From 91480fa09bfd0c7e937cdf0b29360c9e10413f62 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 17 Oct 2009 08:59:19 +0200 Subject: More renaming and reorganization of feature checks. There were a couple of functions is_something(dgn_feature_type feat) defined in travel.cc that were otherwise independent of travel. For consistency, move these to terrain.cc and rename to feat_is_something. One might also consider renaming the various feat_is_whatever functions to just is_whatever. --- crawl-ref/source/stuff.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/stuff.cc') diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 4cafaa9b08..efedacd0ea 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -1656,7 +1656,7 @@ int near_stairs(const coord_def &p, int max_dist, for (radius_iterator ri(p, max_dist, true, false); ri; ++ri) { const dungeon_feature_type feat = grd(*ri); - if (is_stair(feat)) + if (feat_is_stair(feat)) { // Shouldn't happen for escape hatches. if (feat_is_escape_hatch(feat)) -- cgit v1.2.3-54-g00ecf