summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-10 23:09:30 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-10 23:09:30 -0700
commit5fc330e598870b10e2d7f31c1ee3bbc0bc0c19e3 (patch)
tree2abc570638efc98cac7285ee8d85ed6c57f5f604 /crawl-ref
parent5c33abb31f84c43dbbc5b86769696e7f160f32c6 (diff)
downloadcrawl-ref-5fc330e598870b10e2d7f31c1ee3bbc0bc0c19e3.tar.gz
crawl-ref-5fc330e598870b10e2d7f31c1ee3bbc0bc0c19e3.zip
player.cc: fix call to body_weight()
Missing a parameter list. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/player.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index e513965490..f86d010662 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -2880,7 +2880,7 @@ int player_sust_abil(bool calc_unid)
int carrying_capacity(burden_state_type bs)
{
- int cap = (2 * you.body_weight) + (you.strength * 200)
+ int cap = (2 * you.body_weight()) + (you.strength * 200)
+ (player_is_airborne() ? 1000 : 0);
// We are nice to the lighter species in that strength adds absolutely
// instead of relatively to body weight. --dpeg