diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-07 22:12:08 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-07 22:12:08 +0000 |
commit | 8c22e72c1488881816a312d660ada86eeb90d9e9 (patch) | |
tree | 5fa961fbb31bb368306bf6645e9ad8660c8c7571 /crawl-ref/source/shopping.cc | |
parent | 7b19365a5c3941c09fa776bf3e9b221bf0b48ae6 (diff) | |
download | crawl-ref-8c22e72c1488881816a312d660ada86eeb90d9e9.tar.gz crawl-ref-8c22e72c1488881816a312d660ada86eeb90d9e9.zip |
Erase closed shops from the overmap.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7773 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r-- | crawl-ref/source/shopping.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index 455abd005a..025b9ef4d8 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -31,6 +31,7 @@ #include "Kills.h" #include "macro.h" #include "notes.h" +#include "overmap.h" #include "player.h" #include "randart.h" #include "spl-book.h" @@ -1700,6 +1701,11 @@ void shop() } const bool bought_something = _in_a_shop(i); + + // If the shop is now empty, erase it from the overmap. + if ( _shop_get_stock(i).empty() ) + unnotice_feature(level_pos(level_id::current(), you.pos())); + burden_change(); redraw_screen(); |