From 9cc7466db06f418c165ed79fd6bfdfe334a6a568 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 8 Oct 2009 20:08:31 +0200 Subject: Remove legacy losight() function. Also remove an obsoleted variant of grid_appearance. --- crawl-ref/source/terrain.cc | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/terrain.cc') 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) -- cgit v1.2.3-54-g00ecf