diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-03-23 18:11:17 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-03-23 18:11:17 +0100 |
commit | cf7dc3dc184b5e5099b20a1bac893c4d085a1fab (patch) | |
tree | 85efe7e6b58150ba5342b0c9df6780737cb2d543 /crawl-ref/source/dbg-asrt.cc | |
parent | c45893afd1d82b7d793a10cd4b19da22281f65f4 (diff) | |
download | crawl-ref-cf7dc3dc184b5e5099b20a1bac893c4d085a1fab.tar.gz crawl-ref-cf7dc3dc184b5e5099b20a1bac893c4d085a1fab.zip |
Dump the abyssal state during crash.
Diffstat (limited to 'crawl-ref/source/dbg-asrt.cc')
-rw-r--r-- | crawl-ref/source/dbg-asrt.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/dbg-asrt.cc b/crawl-ref/source/dbg-asrt.cc index 191143c611..7c685badc7 100644 --- a/crawl-ref/source/dbg-asrt.cc +++ b/crawl-ref/source/dbg-asrt.cc @@ -10,6 +10,7 @@ #include <errno.h> #include <signal.h> +#include "abyss.h" #include "clua.h" #include "coord.h" #include "coordit.h" @@ -89,6 +90,8 @@ static void _dump_compilation_info(FILE* file) fprintf(file, ">>>>>>>>>>>\n\n"); } +extern abyss_state abyssal_state; + static void _dump_level_info(FILE* file) { fprintf(file, "Place info:\n"); @@ -99,6 +102,18 @@ static void _dump_level_info(FILE* file) string place = level_id::current().describe(); fprintf(file, "Level id: %s\n", place.c_str()); + if (player_in_branch(BRANCH_ABYSS)) + { + fprintf(file, "Abyssal state:\n" + " major_coord = (%d,%d)\n" + " seed = 0x%" PRIx32 "\n" + " depth = %" PRId64 "\n" + " phase = %g\n" + " nuke_all = %d\n", + abyssal_state.major_coord.x, abyssal_state.major_coord.y, + abyssal_state.seed, abyssal_state.depth, abyssal_state.phase, + abyssal_state.nuke_all); + } debug_dump_levgen(); } |