summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 0bca2f9314..983b8403f1 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3791,10 +3791,11 @@ void dec_mp(int mp_loss)
you.magic_points = 0;
if (Options.magic_point_warning
- && you.magic_points <= (you.max_magic_points * Options.magic_point_warning) / 100)
- {
- mpr( "* * * LOW MAGIC WARNING * * *", MSGCH_DANGER_MAGIC );
- }
+ && you.magic_points < (you.max_magic_points
+ * Options.magic_point_warning) / 100)
+ {
+ mpr( "* * * LOW MAGIC WARNING * * *", MSGCH_DANGER_MAGIC );
+ }
take_note(Note(NOTE_MP_CHANGE, you.magic_points, you.max_magic_points));
you.redraw_magic_points = 1;