summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/terrain.h
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2013-02-19 20:08:41 -0330
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2013-02-21 01:36:17 -0600
commit958b2a24e60558b7bd454e13ac92cac99e118189 (patch)
tree68b75a63e72e953f28c6d86ad59df0cf11b36622 /crawl-ref/source/terrain.h
parent36b8c0b5190708be8f06db318fe4f9859df001a5 (diff)
downloadcrawl-ref-958b2a24e60558b7bd454e13ac92cac99e118189.tar.gz
crawl-ref-958b2a24e60558b7bd454e13ac92cac99e118189.zip
Refactor some direct uses of dungeon feature enum ordering
Rather than relying on feat >= DNGN_FLOOR having the same semantics as 'open space', wrap this in boolean functions (which already largely exist). This is also more robust if the backend ever changes.
Diffstat (limited to 'crawl-ref/source/terrain.h')
-rw-r--r--crawl-ref/source/terrain.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/terrain.h b/crawl-ref/source/terrain.h
index cee90264cc..cb90df7808 100644
--- a/crawl-ref/source/terrain.h
+++ b/crawl-ref/source/terrain.h
@@ -39,6 +39,7 @@ bool feat_is_wall(dungeon_feature_type feat);
bool feat_is_opaque(dungeon_feature_type feat);
bool feat_is_solid(dungeon_feature_type feat);
bool feat_has_solid_floor(dungeon_feature_type feat);
+bool feat_has_dry_floor(dungeon_feature_type feat);
bool feat_is_door(dungeon_feature_type feat);
bool feat_is_closed_door(dungeon_feature_type feat);
bool feat_is_statue_or_idol(dungeon_feature_type feat);