summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-09 08:35:43 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-09 08:35:43 +0000
commitbca7bf95401a93f8dfff4595a4d106c03e4d42b1 (patch)
tree47308fff6b4064a84524f78f69301c40eb0d4560 /crawl-ref/source
parentd89f54beb24a690bed53501c7f29413b6d140946 (diff)
downloadcrawl-ref-bca7bf95401a93f8dfff4595a4d106c03e4d42b1.tar.gz
crawl-ref-bca7bf95401a93f8dfff4595a4d106c03e4d42b1.zip
[1629452] Show unburdened carrying capacity. Weights exceeding this will show
up as >100%, which is fine by me. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@810 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/invent.cc2
-rw-r--r--crawl-ref/source/items.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index ebbf6a6bf0..25da2931c9 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -217,7 +217,7 @@ void InvMenu::set_title(const std::string &s)
std::string stitle = s;
if (stitle.empty())
{
- const int cap = carrying_capacity();
+ const int cap = carrying_capacity(BS_UNENCUMBERED);
char title_buf[200];
snprintf( title_buf, sizeof title_buf,
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 1f2b344bf1..8db00d95c8 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1798,7 +1798,7 @@ bool drop_item( int item_dropped, int quant_drop ) {
static std::string drop_menu_invstatus(const Menu *menu)
{
char buf[100];
- const int cap = carrying_capacity();
+ const int cap = carrying_capacity(BS_UNENCUMBERED);
std::string s_newweight;
std::vector<MenuEntry*> se = menu->selected_entries();