summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.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/acr.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/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 9318b863ee..58acce1cdd 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -878,6 +878,11 @@ static void _center_cursor()
//
static void _input()
{
+#if defined(USE_UNIX_SIGNALS) && defined(SIGHUP_SAVE) && defined(USE_CURSES)
+ if (crawl_state.seen_hups)
+ sighup_save_and_exit();
+#endif
+
crawl_state.clear_mon_acting();
religion_turn_start();
@@ -1022,6 +1027,11 @@ static void _input()
#endif
const command_type cmd = _get_next_cmd();
+#if defined(USE_UNIX_SIGNALS) && defined(SIGHUP_SAVE) && defined(USE_CURSES)
+ if (crawl_state.seen_hups)
+ sighup_save_and_exit();
+#endif
+
crawl_state.waiting_for_command = false;
if (cmd != CMD_PREV_CMD_AGAIN && cmd != CMD_REPEAT_CMD
@@ -2497,6 +2507,7 @@ static void _check_banished()
if (you.level_type != LEVEL_ABYSS)
{
mpr("You are cast into the Abyss!");
+ more();
banished(DNGN_ENTER_ABYSS, you.banished_by);
}
you.banished_by.clear();