From 4e0238331ba68154c95e3aa2536b8e2b6c38dde3 Mon Sep 17 00:00:00 2001 From: mtitus_613 Date: Tue, 6 Mar 2007 20:16:56 +0000 Subject: 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 --- crawl-ref/source/player.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/player.cc') 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 ); -- cgit v1.2.3-54-g00ecf