summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2014-03-06 13:03:20 -0330
committerDracoOmega <draco_omega@live.com>2014-03-06 13:07:51 -0330
commit7f644f8eaef639bbb34f1aac7c310af1294a9af4 (patch)
tree94439115959a15213a77f429a64c7db6015d131c /crawl-ref/source/shopping.cc
parent99c708b6183476495026c059dd5916b574d2d256 (diff)
downloadcrawl-ref-7f644f8eaef639bbb34f1aac7c310af1294a9af4.tar.gz
crawl-ref-7f644f8eaef639bbb34f1aac7c310af1294a9af4.zip
Rearrange the shop screen a bit
Right-justifying item prices to the limits of the window meant that hugeterm and local tiles could list shop prices an almost unparsable distance away from the items they referred to. This commit rearranges things to display the price first, followed closely by item name, which should make it quicker to associate an item with its price, while still allowing large screens to display the full inscription for long randarts without being overwritten by the following column.
Diffstat (limited to 'crawl-ref/source/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index cd688a58c9..325c093da1 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -499,7 +499,7 @@ static string _shop_print_stock(const vector<int>& stock,
const int cols = get_number_of_cols();
- cprintf("%s%5d gold", chop_string(item_name, cols-14).c_str(), gp_value);
+ cprintf("%4d gold %s", gp_value, item_name.c_str());
si.add_item(item, gp_value);