From 6f10cd2574eeb8a1417eff84718edd309287ac0d Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Wed, 4 Nov 2009 10:04:17 +0100 Subject: Get rid of multiple-meaning "int object" in env.show. env.show is now a class show_def that stores tagged unions of type show_type. For the moment, there's also env.show_los for use in LOS determination, but that should become an array of boolean at some point. This breaks save compatibility. Tiles and console version build and appear to work fine, but this kind of change is likely to have some side-effects. --- crawl-ref/source/terrain.cc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'crawl-ref/source/terrain.cc') diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc index a3b1e48ff3..47b66af04a 100644 --- a/crawl-ref/source/terrain.cc +++ b/crawl-ref/source/terrain.cc @@ -480,17 +480,6 @@ void get_door_description(int door_size, const char** adjective, const char** no *noun = descriptions[idx+1]; } -unsigned int show_appearance(const coord_def &ep) -{ - unsigned int object = env.show(ep); - const coord_def gc = show2grid(ep); - - if (object == DNGN_SECRET_DOOR) - object = grid_secret_door_appearance(gc); - - return object; -} - dungeon_feature_type grid_appearance(const coord_def &gc) { dungeon_feature_type feat = env.grid(gc); -- cgit v1.2.3-54-g00ecf