diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-21 03:58:34 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-21 03:58:34 +0000 |
commit | 3bc5803595bf91439ca4805cec5f7f2bed0de72a (patch) | |
tree | 020c49afbd7e3e4798242fdc8354d899a0e61e54 /crawl-ref/source/directn.h | |
parent | 20435a6543a7245c0f4bc64f85959064cc98abcf (diff) | |
download | crawl-ref-3bc5803595bf91439ca4805cec5f7f2bed0de72a.tar.gz crawl-ref-3bc5803595bf91439ca4805cec5f7f2bed0de72a.zip |
[2496621] Fixing view recentering on abyss shifts. Shifts now preserve any scrolling that had occured.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8641 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/directn.h')
-rw-r--r-- | crawl-ref/source/directn.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h index 6d71cfa0b5..c20a3c792d 100644 --- a/crawl-ref/source/directn.h +++ b/crawl-ref/source/directn.h @@ -68,6 +68,8 @@ public: void init_view(); void set_player_at(const coord_def &c, bool force_centre = false); + // Set new location, but preserve scrolling as if the player didn't move. + void shift_player_to(const coord_def &c); coord_def view_centre() const { |