summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-07 06:02:32 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-07 06:02:32 +0000
commita0887505eb112708e36bac24d1ee7949588fc215 (patch)
tree2318603bd85043311c7b55c9bdd276e8ebfcebbc /crawl-ref/source/player.cc
parent4e0238331ba68154c95e3aa2536b8e2b6c38dde3 (diff)
downloadcrawl-ref-a0887505eb112708e36bac24d1ee7949588fc215.tar.gz
crawl-ref-a0887505eb112708e36bac24d1ee7949588fc215.zip
Kill hard tabs in .h files and crawl_options.txt.
Turn off mp_warning by default. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@990 c06c8d41-db1a-0410-9941-cceddc491573
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;