diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-28 11:33:27 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-28 11:33:27 +0000 |
commit | fec3e431ad8d5c47c29a20c4dc81820f867fda23 (patch) | |
tree | bab4ca89dc883eb0cdd8e36501895272db00f3d0 /crawl-ref/source/state.cc | |
parent | 7c6b9c70e049c9413046a0f4ded90f67b7c71234 (diff) | |
download | crawl-ref-fec3e431ad8d5c47c29a20c4dc81820f867fda23.tar.gz crawl-ref-fec3e431ad8d5c47c29a20c4dc81820f867fda23.zip |
When crashing, dump information about the player.
When crashing, dump information about the current level, and if the crash
happens during level generation dump which vaults were placed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8838 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/state.cc')
-rw-r--r-- | crawl-ref/source/state.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc index 6d04364a87..3981bf2aa4 100644 --- a/crawl-ref/source/state.cc +++ b/crawl-ref/source/state.cc @@ -447,6 +447,11 @@ void game_state::dump() fprintf(stderr, EOL); + // Arena mode can change behavior of the rest of the code and/or lead + // to asserts. + unwind_bool _arena(arena, false); + unwind_bool _arena_suspended(arena_suspended, false); + if (!startup_errors.empty()) { fprintf(stderr, "Startup errors:" EOL); |