summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/state.cc')
-rw-r--r--crawl-ref/source/state.cc15
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());
+ }
}