diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-29 14:34:27 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-29 14:34:27 +0000 |
commit | e744cede0540585248737db8e27a8320e5476955 (patch) | |
tree | 481b0e4ae8e92332d0b43e3cee9aa3ad3e0d7e1d /crawl-ref/source/acr.cc | |
parent | 5362837395aa1a82999c8c7096e2807f61e53c48 (diff) | |
download | crawl-ref-e744cede0540585248737db8e27a8320e5476955.tar.gz crawl-ref-e744cede0540585248737db8e27a8320e5476955.zip |
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
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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(); |