summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
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();