summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-28 07:19:25 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-28 07:19:25 +0000
commit7da9fbce1aed84ac9b02d8c4f7363ca02429d238 (patch)
treeccf8d14af5e134344cd477453866c2cd682e34db /crawl-ref/source/view.cc
parentf086209f1e223b89cb392fd71bdebe2f3551f1f7 (diff)
downloadcrawl-ref-7da9fbce1aed84ac9b02d8c4f7363ca02429d238.tar.gz
crawl-ref-7da9fbce1aed84ac9b02d8c4f7363ca02429d238.zip
Backport r10443: generalized way of dealing with "disconnect at --more--"
hacks. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10444 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 69be6e93d3..7d4878c93f 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -3475,6 +3475,16 @@ void show_map( coord_def &spec_place, bool travel_mode )
while (map_alive)
{
+#if defined(USE_UNIX_SIGNALS) && defined(SIGHUP_SAVE) && defined(USE_CURSES)
+ // If we've received a HUP signal then the user can't choose a
+ // location, so indicate this by returning an invalid position.
+ if (crawl_state.seen_hups)
+ {
+ spec_place = coord_def(-1, -1);
+ return;
+ }
+#endif
+
start_y = screen_y - half_screen;
move_x = move_y = 0;