From 2b81f6d336f3b8f9c4df969cb1d1a824b13bee9d Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sun, 24 May 2009 07:10:46 +0000 Subject: Move tutorial ending check from gain_exp() to level_change(), so that if the player gains XL 7 via a potion of experience the tutorial will end. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9815 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 54d9f6dd30..624393f230 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -2958,11 +2958,6 @@ void gain_exp( unsigned int exp_gained, unsigned int* actual_gain, level_change(); - // Increase tutorial time-out now that it's actually - // become useful for a longer time. - if (Options.tutorial_left && you.experience_level == 7) - tutorial_finished(); - if (actual_gain != NULL) *actual_gain = you.experience - old_exp; @@ -3567,6 +3562,11 @@ void level_change(bool skip_attribute_increase) } redraw_skill(you.your_name, player_title()); + + // Increase tutorial time-out now that it's actually + // become useful for a longer time. + if (Options.tutorial_left && you.experience_level >= 7) + tutorial_finished(); } // Here's a question for you: does the ordering of mods make a difference? -- cgit v1.2.3-54-g00ecf