From e744cede0540585248737db8e27a8320e5476955 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Tue, 29 Jul 2008 14:34:27 +0000 Subject: Don't lose level-up stat and hp gain if Crawl receives SIGHUP at the level-up prompt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6718 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/acr.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/acr.cc') diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index cf9bf7e992..87b970d8f4 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -288,6 +288,12 @@ int main( int argc, char *argv[] ) else learned_something_new(TUT_LOAD_SAVED_GAME); + // Catch up on any experience levels we did not assign last time. This + // can happen if Crawl sees SIGHUP while it is waiting for the player + // to dismiss a level-up prompt. + _prep_input(); + level_change(); + while (true) _input(); -- cgit v1.2.3-54-g00ecf