diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 64a89331bf..746b2f6948 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -158,6 +158,12 @@ bool move_player_to_grid( int x, int y, bool stepped, bool allow_shift, if (random2( skill ) > 6) { + id = trap_at_xy( x, y ); + if (id != -1) + grd[x][y] = trap_category( env.trap[id].type ); + + viewwindow(true, false); + mprf( MSGCH_WARN, "Wait a moment, %s! Do you really want to step there?", you.your_name ); @@ -169,10 +175,6 @@ bool move_player_to_grid( int x, int y, bool stepped, bool allow_shift, you.turn_is_over = false; - id = trap_at_xy( x, y ); - if (id != -1) - grd[x][y] = trap_category( env.trap[id].type ); - return (false); } } |