summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-16 08:52:19 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-16 08:52:19 +0000
commitfe642d0694ff166fb0b65255c37f05b9d2ee73e1 (patch)
treed8dfe9fbd60c86b053e149c693a4561a1baa39cc /crawl-ref/source/player.cc
parent20161f7b196c4e760f8ef9468a4a621018eafd05 (diff)
downloadcrawl-ref-fe642d0694ff166fb0b65255c37f05b9d2ee73e1.tar.gz
crawl-ref-fe642d0694ff166fb0b65255c37f05b9d2ee73e1.zip
Removed: safe_autopickup, safe_zero_exp, lowercase_invocations,
always_greet, terse_hand, increasing_skill_progress, use_notes, confirm_self_target. (default_autoprayer still exists.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2859 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 39a33acc47..cf3a8f90e6 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3208,7 +3208,10 @@ void level_change(bool skip_ability_increase)
modify_stat(STAT_RANDOM, 1, false, "level gain");
if (you.experience_level == 5)
- mpr("You have gained the ability to fly.", MSGCH_INTRINSIC_GAIN);
+ {
+ mpr("You have gained the ability to fly.",
+ MSGCH_INTRINSIC_GAIN);
+ }
else if (you.experience_level == 15)
{
mpr("You can now fly continuously.", MSGCH_INTRINSIC_GAIN);
@@ -3242,7 +3245,6 @@ void level_change(bool skip_ability_increase)
if (you.magic_points < 0)
you.magic_points = 0;
- if (Options.use_notes)
{
unwind_var<int> hpmax(you.hp_max);
unwind_var<int> hp(you.hp);
@@ -3258,6 +3260,7 @@ void level_change(bool skip_ability_increase)
you.hp, you.hp_max, you.magic_points, you.max_magic_points);
take_note(Note(NOTE_XP_LEVEL_CHANGE, you.experience_level, 0, buf));
}
+
// recalculate for game
calc_hp();
calc_mp();