summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-30 15:33:28 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-30 15:33:28 +0000
commit8d4a4ac462d704c8cb86927f19d62972c61bb055 (patch)
tree7b5ab93e2d53a5dc8de61dac6b23bd0ea7cdb2e8 /crawl-ref/source/hiscores.cc
parente5e14cbc64c6513c7f9d4e923b4557b523e67b21 (diff)
downloadcrawl-ref-8d4a4ac462d704c8cb86927f19d62972c61bb055.tar.gz
crawl-ref-8d4a4ac462d704c8cb86927f19d62972c61bb055.zip
Fix maxHP being reported incorrectly in morguefile if you have
percentage-changing effects (robustness, divine vigour) and rotting. Fixes [2478011]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8856 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index 074b5e8e89..27995ac942 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -1024,7 +1024,7 @@ void scorefile_entry::init()
final_hp = you.hp;
final_max_hp = you.hp_max;
- final_max_max_hp = you.hp_max + player_rotted();
+ final_max_max_hp = get_real_hp(true, true);
str = std::max(you.strength - stat_modifier(STAT_STRENGTH), 1);
intel = std::max(you.intel - stat_modifier(STAT_INTELLIGENCE), 1);