diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index ea9b516513..eec79c0d66 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -3820,6 +3820,17 @@ static void _attribute_increase() switch (keyin) { +#if defined(USE_UNIX_SIGNALS) && defined(SIGHUP_SAVE) + case ESCAPE: + case -1: + // [ds] It's safe to save the game here; when the player + // reloads, the game will re-prompt for their level-up + // stat gain. + if (crawl_state.seen_hups) + sighup_save_and_exit(); + break; +#endif + case 's': case 'S': modify_stat(STAT_STRENGTH, 1, false, "level gain"); |