diff options
author | DracoOmega <draco_omega@live.com> | 2013-03-17 04:23:15 -0230 |
---|---|---|
committer | DracoOmega <draco_omega@live.com> | 2013-03-17 05:33:55 -0230 |
commit | d383fcfde18594eedb8d10a2bddf293ba3ba50a5 (patch) | |
tree | c9fbe9ff5a1a725c7d1310c81e019d829d7f50f4 /crawl-ref/source/dbg-util.cc | |
parent | 57cc409874b78f704d37821378421ce2df6e3ffc (diff) | |
download | crawl-ref-d383fcfde18594eedb8d10a2bddf293ba3ba50a5.tar.gz crawl-ref-d383fcfde18594eedb8d10a2bddf293ba3ba50a5.zip |
Also list subvault names when listing vault info in wizmode
Diffstat (limited to 'crawl-ref/source/dbg-util.cc')
-rw-r--r-- | crawl-ref/source/dbg-util.cc | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/crawl-ref/source/dbg-util.cc b/crawl-ref/source/dbg-util.cc index c32d89329d..0ae0742fc9 100644 --- a/crawl-ref/source/dbg-util.cc +++ b/crawl-ref/source/dbg-util.cc @@ -84,8 +84,23 @@ void debug_dump_levgen() if (!env.level_vault_list.empty()) { mpr("Level vaults:"); - for (size_t i = 0; i < env.level_vault_list.size(); ++i) - mprf(" %s", env.level_vault_list[i].c_str()); + for (size_t i = 0; i < env.level_vaults.size(); ++i) + { + const vault_placement* vault = env.level_vaults[i]; + string vault_name = vault->map.name.c_str(); + if (vault->map.subvault_places.size()) + { + vault_name += " ["; + for (unsigned int j = 0; j < vault->map.subvault_places.size(); ++j) + { + vault_name += vault->map.subvault_places[j].subvault->name; + if (j < vault->map.subvault_places.size() - 1) + vault_name += ", "; + } + vault_name += "]"; + } + mprf(" %s", vault_name.c_str()); + } } mpr(""); } |