summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-12 09:29:38 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-12 09:29:38 +0000
commitcf7c5ab387afef8d2ec89fd15beb3458bc06324f (patch)
tree08b86a975b3a488206e870c8cafddc03b8e98e91
parent35e3c196c5e05b90021f74f9c1e91c7908c2ff1a (diff)
downloadcrawl-ref-cf7c5ab387afef8d2ec89fd15beb3458bc06324f.tar.gz
crawl-ref-cf7c5ab387afef8d2ec89fd15beb3458bc06324f.zip
* Add a hack to make the right bracket of the weight information show up
up in tiled inventories. Still doesn't work with tile_menu_icons = true but at least it looks nice otherwise. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9969 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/docs/options_guide.txt2
-rw-r--r--crawl-ref/source/invent.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/docs/options_guide.txt b/crawl-ref/docs/options_guide.txt
index c11d65026f..c659e67b8c 100644
--- a/crawl-ref/docs/options_guide.txt
+++ b/crawl-ref/docs/options_guide.txt
@@ -1232,6 +1232,8 @@ delay_message_clear = false
show_inventory_weights = false
When this is set to true, inventory listings will mention the
weight of each item.
+ Note: This option doesn't currently work for Tiles unless you use
+ tile_menu_icons = false.
show_gold_turns = false
If set to true, this option adds an extra line to the stat area
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 834527fc5a..3c89d39f14 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -218,7 +218,7 @@ std::string InvEntry::get_text() const
if (Options.show_inventory_weights)
{
const int mass = item_mass(*item) * item->quantity;
- tstr << std::setw(get_number_of_cols() - tstr.str().length() - 1)
+ tstr << std::setw(get_number_of_cols() - tstr.str().length() - 2)
<< std::right
<< make_stringf("(%.1f aum)", BURDEN_TO_AUM * mass);
}