diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 086782330c..c0dbe2af63 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -7214,13 +7214,12 @@ bool player::is_icy() const return (attribute[ATTR_TRANSFORMATION] == TRAN_ICE_BEAST); } -void player::moveto(const coord_def &c) +void player::base_moveto(const coord_def &c) { ASSERT(!crawl_state.arena); const bool real_move = (c != pos()); position = c; - crawl_view.set_player_at(c); if (real_move) { @@ -7233,6 +7232,18 @@ void player::moveto(const coord_def &c) } } +void player::moveto(const coord_def &c) +{ + crawl_view.set_player_at(c); + base_moveto(c); +} + +void player::shiftto(const coord_def &c) +{ + crawl_view.shift_player_to(c); + base_moveto(c); +} + void player::reset_prev_move() { prev_move = coord_def(0,0); |