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.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc
index ae538be8fb..621403ff36 100644
--- a/crawl-ref/source/terrain.cc
+++ b/crawl-ref/source/terrain.cc
@@ -311,7 +311,12 @@ unsigned int show_appearance(const coord_def &ep)
dungeon_feature_type grid_appearance(const coord_def &gc)
{
- dungeon_feature_type grid = grd(gc);
+ return grid_appearance(grd, gc);
+}
+
+dungeon_feature_type grid_appearance(feature_grid &gr, const coord_def &gc)
+{
+ dungeon_feature_type grid = gr(gc);
if (grid == DNGN_SECRET_DOOR)
grid = grid_secret_door_appearance(gc);