summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileweb.cc
diff options
context:
space:
mode:
authorelliptic <hyperelliptical@gmail.com>2014-04-07 13:55:04 -0400
committerelliptic <hyperelliptical@gmail.com>2014-04-07 13:56:46 -0400
commitda4a0999e32825c045062dfcbb2887e6dd0bc3e3 (patch)
treefae492efd30f8394c1be5955a218928bf33c4205 /crawl-ref/source/tileweb.cc
parentd827497410ed5daaedc76ef5a7811998f3c3b6e1 (diff)
downloadcrawl-ref-da4a0999e32825c045062dfcbb2887e6dd0bc3e3.tar.gz
crawl-ref-da4a0999e32825c045062dfcbb2887e6dd0bc3e3.zip
Let @ (and lua) display negative values for poison_survival().
So that players have a way of guessing whether heal wounds might be enough to survive.
Diffstat (limited to 'crawl-ref/source/tileweb.cc')
-rw-r--r--crawl-ref/source/tileweb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tileweb.cc b/crawl-ref/source/tileweb.cc
index ba82c81771..665ff680a9 100644
--- a/crawl-ref/source/tileweb.cc
+++ b/crawl-ref/source/tileweb.cc
@@ -733,7 +733,7 @@ void TilesFramework::_send_player(bool force_full)
_update_int(force_full, c.mp, you.magic_points, "mp");
_update_int(force_full, c.mp_max, you.max_magic_points, "mp_max");
#endif
- _update_int(force_full, c.poison_survival, poison_survival(),
+ _update_int(force_full, c.poison_survival, max(0, poison_survival()),
"poison_survival");
if (you.species == SP_LAVA_ORC)