summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-10 08:27:18 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-10 08:27:18 +0000
commite5db234d57ff8e71c3780903aef07ddc43afab2e (patch)
tree08af29a05b1527942386560e7e4b44069b1cdbfe /crawl-ref/source/player.cc
parent25d3b62862eabdb0a7a680e8a407e5657813df36 (diff)
downloadcrawl-ref-e5db234d57ff8e71c3780903aef07ddc43afab2e.tar.gz
crawl-ref-e5db234d57ff8e71c3780903aef07ddc43afab2e.zip
Fix [2583985]: autoexplore not refreshing stats when T&D skill prevents
walking into a trap. There could be other places lurking where turn_is_over is manually overriden, but a quick check didn't find any problematic ones (i.e. ones that change game state.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9023 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 753fdc7a0b..76bd7e5b0d 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -160,14 +160,15 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift,
viewwindow(true, false);
- mprf( MSGCH_WARN,
- "Wait a moment, %s! Do you really want to step there?",
- you.your_name );
+ mprf(MSGCH_WARN,
+ "Wait a moment, %s! Do you really want to step there?",
+ you.your_name);
if (!you.running.is_any_travel())
more();
- exercise( SK_TRAPS_DOORS, 3 );
+ exercise(SK_TRAPS_DOORS, 3);
+ print_stats();
you.turn_is_over = false;