diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-13 23:14:13 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-13 23:14:13 +0000 |
commit | 289b890fb1cc7b1c01b32c11c49952980592de43 (patch) | |
tree | 99342d477b3f5bdd546c7daacfbc69d8dd8409f5 /crawl-ref/source/shopping.cc | |
parent | 672a1cbf174bcbad5cf6d597839901ff48e8b6a5 (diff) | |
download | crawl-ref-289b890fb1cc7b1c01b32c11c49952980592de43.tar.gz crawl-ref-289b890fb1cc7b1c01b32c11c49952980592de43.zip |
* Call message flush before entering a shop.
* Indent shopping commands correctly.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9455 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r-- | crawl-ref/source/shopping.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index 18ea77e3d2..8b365b3885 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -120,10 +120,11 @@ static void _list_shop_keys(const std::string &purchasable, bool viewing) cgotoxy(1, numlines, GOTO_CRT); fs = formatted_string::parse_string( - "[<w>?</w>/<w>*</w>] Inventory [<w>\\</w>] Known Items " #ifdef USE_TILE + "[<w>?</w>/<w>*</w>] Inventory [<w>\\</w>] Known Items " "[<w>Enter</w>/<w>L-Click</w>] Make Purchase"); #else + "[<w>?</w>/<w>*</w>] Inventory [<w>\\</w>] Known Items " "[<w>Enter</w>] Make Purchase"); #endif fs.cprintf("%*s", get_number_of_cols() - fs.length() - 1, ""); @@ -1742,12 +1743,12 @@ unsigned int item_value( item_def item, bool ident ) static void _delete_shop(int i) { grd(you.pos()) = DNGN_ABANDONED_SHOP; -// env.shop.erase(i); unnotice_feature(level_pos(level_id::current(), you.pos())); } void shop() { + flush_prev_message(); int i; for (i = 0; i < MAX_SHOPS; i++) |