diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-22 11:00:14 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-22 11:00:14 +0000 |
commit | ec5b5dfca31a3c2ec1a101e38f57f47c3952acb8 (patch) | |
tree | d4161725fc218e93d7cc7042253fc4fa77bf476c /crawl-ref/source/state.cc | |
parent | a54e6bb23df5211c2a5b59037f355c43e795fa05 (diff) | |
download | crawl-ref-ec5b5dfca31a3c2ec1a101e38f57f47c3952acb8.tar.gz crawl-ref-ec5b5dfca31a3c2ec1a101e38f57f47c3952acb8.zip |
Include the Lua stack trace and currently acting monsters in the crash report.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8694 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/state.cc')
-rw-r--r-- | crawl-ref/source/state.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc index 9cf8e30b1a..682119512b 100644 --- a/crawl-ref/source/state.cc +++ b/crawl-ref/source/state.cc @@ -423,6 +423,7 @@ void game_state::mon_gone(monsters* mon) { mon_act_stack.erase(mon_act_stack.begin() + i); i--; + size--; } } @@ -502,4 +503,18 @@ void game_state::dump(FILE* file) god_act_stack[i].depth); fprintf(file, EOL); } + + if (mon_act != NULL) + { + fprintf(file, "Monster '%s' currently acting" EOL EOL, + mon_act->name(DESC_PLAIN, true).c_str()); + } + + if (mon_act_stack.size() != 0) + { + fprintf(file, "Others monsters acting:" EOL); + for (unsigned int i = 0; i < mon_act_stack.size(); i++) + fprintf(file, "Monster '%s'" EOL, + mon_act_stack[i]->name(DESC_PLAIN, true).c_str()); + } } |