summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-07 23:44:02 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-07 23:44:02 +0000
commitcdd74d0b4618ad1f8f02ee18036283c6c2214b3d (patch)
tree10aad41074679ccdf7d78a953171482e81bc53a8 /crawl-ref/source/tilepick.cc
parentf4d7abfdc292ea48cc3fcd1a8c98e0f22abd28f6 (diff)
downloadcrawl-ref-cdd74d0b4618ad1f8f02ee18036283c6c2214b3d.tar.gz
crawl-ref-cdd74d0b4618ad1f8f02ee18036283c6c2214b3d.zip
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
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc5
1 files changed, 2 insertions, 3 deletions
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: