git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1806 c06c8d41-db1a-0410-9941-cceddc491573
ECJNCUSSE63BKED3EAYIXQCI62I76QGNHCSFO3CDWPRZF3JQP44QC
WLX2RQMMOMP2PYPAGJRM4VFD2WTLJTOAZZPPY3MV76FU2EGEJ54QC
IVVTHLTTLOP5TSULXJWUSSXHOKYWVU3OWKYVK45A7RIB6V34MYQAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
CUNNC574MESEMTTONZ6YB6CJ2S5P6VA3V7Z3OODESWAK37GYOBPAC
C22455VGUQOSUX2OORA32LROFQ7NNYDMD2ZDTTUZSAQLXK4AD6QAC
KCHX2F3JFEWOZT3WMJVZAAQUU2QSZ5Q7RDCD7WUJ7VE65J52JFUQC
const int result = write_vault( vdefs[which_vault], vgrid, place, avoid );
#ifdef DEBUG_DIAGNOSTICS
if (crawl_state.map_stat_gen && result > 0)
mapgen_report_map_use(vdefs[which_vault]);
#endif
return (result);
return (write_vault( vdefs[which_vault], vgrid, place, avoid ));
std::map<std::string, int> mapgen_try_count;
std::map<std::string, int> mapgen_use_count;
std::map<level_id, int> mapgen_level_maps;
std::map<std::string, std::string> mapgen_errors;
std::string mapgen_last_error;
static std::map<std::string, int> mapgen_try_count;
static std::map<std::string, int> mapgen_use_count;
static std::map<level_id, int> mapgen_level_mapcounts;
static std::map< level_id, std::set<std::string> > mapgen_level_mapsused;
static std::map<std::string, std::string> mapgen_errors;
static std::string mapgen_last_error;
fprintf(outf, "%d) %s\n", i + 1, mapless[i].describe().c_str());
fprintf(outf, "%3d) %s\n", i + 1, mapless[i].describe().c_str());
}
fprintf(outf, "\n\nMaps by level:\n\n");
for (std::map<level_id, std::set<std::string> >::const_iterator i =
mapgen_level_mapsused.begin(); i != mapgen_level_mapsused.end();
++i)
{
std::string line =
make_stringf("%-10s: ", i->first.describe().c_str());
const std::set<std::string> &maps = i->second;
bool unfinished = false;
for (std::set<std::string>::const_iterator j = maps.begin();
j != maps.end(); ++j)
{
if (j != maps.begin())
line += ", ";
line += *j;
if (line.length() > 79)
{
unfinished = true;
break;
}
}
const unsigned margin = unfinished? 74 : 79;
if (line.length() > margin)
line = line.substr(0, margin);
fprintf(outf, "%s%s\n", line.c_str(), unfinished? ", ..." : "");