diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-20 03:12:13 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-20 03:12:13 +0000 |
commit | 1630849515ed452092588a148a48c35d08e4c7b8 (patch) | |
tree | 8c9a4aec8f7bea8267ce8c67a5145b0306312fa9 /crawl-ref | |
parent | e1f1dbd2ba852c17344b86e9fc131936b4258606 (diff) | |
download | crawl-ref-1630849515ed452092588a148a48c35d08e4c7b8.tar.gz crawl-ref-1630849515ed452092588a148a48c35d08e4c7b8.zip |
Fixing issue where the X map mode would incorrectly move the screen after viewing help.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4402 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/view.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index a642aea2b0..d7c15fd2da 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -3126,6 +3126,8 @@ void show_map( coord_def &spec_place, bool travel_mode ) { start_y = screen_y - half_screen; + move_x = move_y = 0; + if (redraw_map) { #ifdef USE_TILE @@ -3178,7 +3180,6 @@ void show_map( coord_def &spec_place, bool travel_mode ) find_travel_pos(you.x_pos, you.y_pos, NULL, NULL, &features); // Sort features into the order the player is likely to prefer. arrange_features(features); - move_x = move_y = 0; break; // Cycle the radius of an exclude. @@ -3189,7 +3190,6 @@ void show_map( coord_def &spec_place, bool travel_mode ) cycle_exclude_radius(p); _reset_travel_colours(features); - move_x = move_y = 0; break; } @@ -3203,7 +3203,6 @@ void show_map( coord_def &spec_place, bool travel_mode ) clear_excludes(); _reset_travel_colours(features); - move_x = move_y = 0; break; } |