summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/terrain.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/terrain.cc')
-rw-r--r--crawl-ref/source/terrain.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc
index ad8ace64e9..cdd0ef6a43 100644
--- a/crawl-ref/source/terrain.cc
+++ b/crawl-ref/source/terrain.cc
@@ -186,12 +186,12 @@ command_type grid_stair_direction(dungeon_feature_type grid)
bool grid_is_opaque(dungeon_feature_type grid)
{
- return (grid < DNGN_MINSEE);
+ return (grid <= DNGN_MAXOPAQUE);
}
bool grid_is_solid(dungeon_feature_type grid)
{
- return (grid < DNGN_MINMOVE);
+ return (grid <= DNGN_MAXSOLID);
}
bool grid_is_solid(int x, int y)