From cdd74d0b4618ad1f8f02ee18036283c6c2214b3d Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 7 Dec 2008 23:44:02 +0000 Subject: Actually replace sold out shops with the new feature DNGN_ABANDONED_SHOP. This makes comparisons much easier and also avoids giving away information about far away shops being opened/closed. (This was only an issue if a shop only held blood potions that rotted away, but still.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7775 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tilepick.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/tilepick.cc') diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc index b192db52e8..f868e555cd 100644 --- a/crawl-ref/source/tilepick.cc +++ b/crawl-ref/source/tilepick.cc @@ -2245,9 +2245,6 @@ static int _tileidx_trap(trap_type type) static int _tileidx_shop(coord_def where) { - if (shop_is_closed(where)) - return TILE_SHOP_CLOSED; - const shop_struct *shop = get_shop(where); if (!shop) return TILE_ERROR; @@ -2349,6 +2346,8 @@ int tileidx_feature(int object, int gx, int gy) return _tileidx_trap(get_trap_type(coord_def(gx, gy))); case DNGN_ENTER_SHOP: return _tileidx_shop(coord_def(gx,gy)); + case DNGN_ABANDONED_SHOP: + return TILE_DNGN_ABANDONED_SHOP; case DNGN_ENTER_LABYRINTH: return TILE_DNGN_ENTER_LABYRINTH; case DNGN_STONE_STAIRS_DOWN_I: -- cgit v1.2.3-54-g00ecf