summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/terrain.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-08 20:08:31 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-08 20:13:13 +0200
commit9cc7466db06f418c165ed79fd6bfdfe334a6a568 (patch)
tree67dfdfb1c6612a84db7423ab00d8518753edc88a /crawl-ref/source/terrain.cc
parent2fb004a5ae4d47af8151a821f296c25426fbe1e4 (diff)
downloadcrawl-ref-9cc7466db06f418c165ed79fd6bfdfe334a6a568.tar.gz
crawl-ref-9cc7466db06f418c165ed79fd6bfdfe334a6a568.zip
Remove legacy losight() function.
Also remove an obsoleted variant of grid_appearance.
Diffstat (limited to 'crawl-ref/source/terrain.cc')
-rw-r--r--crawl-ref/source/terrain.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc
index ee0efbde29..527ee90e14 100644
--- a/crawl-ref/source/terrain.cc
+++ b/crawl-ref/source/terrain.cc
@@ -365,16 +365,11 @@ unsigned int show_appearance(const coord_def &ep)
dungeon_feature_type grid_appearance(const coord_def &gc)
{
- return grid_appearance(grd, gc);
-}
-
-dungeon_feature_type grid_appearance(const feature_grid &gr, const coord_def &gc)
-{
- dungeon_feature_type grid = gr(gc);
- if (grid == DNGN_SECRET_DOOR)
- grid = grid_secret_door_appearance(gc);
+ dungeon_feature_type feat = env.grid(gc);
+ if (feat == DNGN_SECRET_DOOR)
+ feat = grid_secret_door_appearance(gc);
- return grid;
+ return feat;
}
dungeon_feature_type grid_secret_door_appearance(const coord_def &where)