From a0887505eb112708e36bac24d1ee7949588fc215 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 7 Mar 2007 06:02:32 +0000 Subject: 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 --- crawl-ref/source/player.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/player.cc') 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; -- cgit v1.2.3-54-g00ecf