diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 16:02:03 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 16:02:03 +0000 |
commit | 80c7baf5a9d6beab424479c2295d4a52b1ed757b (patch) | |
tree | 788d671ee7d55f173c4494b0037b6c48b77ebab0 /crawl-ref/source/shopping.cc | |
parent | bc14cb50b1c005ffa4442fb2f59c9e7fb74b1dd2 (diff) | |
download | crawl-ref-80c7baf5a9d6beab424479c2295d4a52b1ed757b.tar.gz crawl-ref-80c7baf5a9d6beab424479c2295d4a52b1ed757b.zip |
[2577409]: minor improvements to the shopping interface.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8979 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r-- | crawl-ref/source/shopping.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index 70227a4f2d..9ca277ad22 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -328,7 +328,13 @@ static bool _in_a_shop( int shopidx ) int ft = get_ch(); if (ft == '\\') - check_item_knowledge(); + { + if (!check_item_knowledge(true)) + { + _shop_print("You don't recognize anything yet!", 1); + _shop_more(); + } + } else if (ft == 'x' || ft == ESCAPE) break; else if (ft == '\r') @@ -338,7 +344,6 @@ static bool _in_a_shop( int shopidx ) { _shop_print("I'm sorry, you don't seem to have enough money.", 1); - _shop_more(); } else if (!total_cost) continue; |