diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 17:59:04 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 19:16:19 +0100 |
commit | 30e93ba6eaa9012f8aafef9e6d250349338737c3 (patch) | |
tree | 0e639d2b971fe41fe900c02d987aca2f02d4d152 /crawl-ref/source/viewgeom.cc | |
parent | d60108eb30bd9ab43fc56431664dde0bfe0de5d1 (diff) | |
download | crawl-ref-30e93ba6eaa9012f8aafef9e6d250349338737c3.tar.gz crawl-ref-30e93ba6eaa9012f8aafef9e6d250349338737c3.zip |
Replace you.pos() with last_player_pos.
Before, the code implicitly assumed that you.pos() hadn't already
been updated.
Diffstat (limited to 'crawl-ref/source/viewgeom.cc')
-rw-r--r-- | crawl-ref/source/viewgeom.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/viewgeom.cc b/crawl-ref/source/viewgeom.cc index e013819a09..0ee155b3cc 100644 --- a/crawl-ref/source/viewgeom.cc +++ b/crawl-ref/source/viewgeom.cc @@ -265,7 +265,7 @@ void crawl_view_geometry::init_view() void crawl_view_geometry::shift_player_to(const coord_def &c) { // Preserve vgrdc offset after moving. - const coord_def offset = crawl_view.vgrdc - you.pos(); + const coord_def offset = crawl_view.vgrdc - last_player_pos; crawl_view.vgrdc = offset + c; last_player_pos = c; |