summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authormtitus_613 <mtitus_613@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-06 20:16:56 +0000
committermtitus_613 <mtitus_613@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-06 20:16:56 +0000
commit4e0238331ba68154c95e3aa2536b8e2b6c38dde3 (patch)
treec5dd4629ce8f2a985c082dc9bb1eb39d3fdef5b7 /crawl-ref/source/player.cc
parent2b214aa07350746941caddf337ab4cd5bc82203d (diff)
downloadcrawl-ref-4e0238331ba68154c95e3aa2536b8e2b6c38dde3.tar.gz
crawl-ref-4e0238331ba68154c95e3aa2536b8e2b6c38dde3.zip
Player's magic can be 0 without the player dying (at least immediately) so remove that check. This allows the LOW MAGIC WARNING to appear if the player's magic drops from above the warning to 0 in one go.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@989 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-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 1cf91f9dd8..0bca2f9314 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3790,7 +3790,7 @@ void dec_mp(int mp_loss)
if (you.magic_points < 0)
you.magic_points = 0;
- if (you.magic_points > 0 && Options.magic_point_warning
+ if (Options.magic_point_warning
&& you.magic_points <= (you.max_magic_points * Options.magic_point_warning) / 100)
{
mpr( "* * * LOW MAGIC WARNING * * *", MSGCH_DANGER_MAGIC );