summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-29 14:50:38 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-29 14:50:38 +0000
commit543be3c674fc50c6a375b77e1e9e5296a76bbef2 (patch)
tree49ac3bc9a6fe024346f7b1fcc07dd95f19e725d1 /crawl-ref/source/acr.cc
parentc029d0d79ef9776675002f94cd1f2d541e5435b2 (diff)
downloadcrawl-ref-543be3c674fc50c6a375b77e1e9e5296a76bbef2.tar.gz
crawl-ref-543be3c674fc50c6a375b77e1e9e5296a76bbef2.zip
Trunk->0.4 r6718: 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/branches/stone_soup-0.4@6719 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 849f754946..02ce386d18 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -277,6 +277,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();