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.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 21904de8d6..eb8662b5bc 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3497,8 +3497,7 @@ void level_change(bool skip_attribute_increase)
deflate_hp( you.hp_max, false );
- if (you.magic_points < 0)
- you.magic_points = 0;
+ you.magic_points = std::max(0, you.magic_points);
{
unwind_var<int> hpmax(you.hp_max);
@@ -3530,8 +3529,7 @@ void level_change(bool skip_attribute_increase)
}
redraw_skill( you.your_name, player_title() );
-
-} // end level_change()
+}
// Here's a question for you: does the ordering of mods make a difference?
// (yes) -- are these things in the right order of application to stealth?