Add town and industry counts to dump_map_stats command

pull/341/head
Jonathan G Rennison 3 years ago
parent b69521ea87
commit 585c3fe9ca

@ -2412,6 +2412,10 @@ DEF_CONSOLE_CMD(ConMapStats)
char buffer[32768];
DumpMapStats(buffer, lastof(buffer));
PrintLineByLine(buffer);
IConsolePrint(CC_DEFAULT, "");
IConsolePrintF(CC_DEFAULT, "towns: %u", (uint) Town::GetNumItems());
IConsolePrintF(CC_DEFAULT, "industries: %u", (uint) Industry::GetNumItems());
return true;
}

Loading…
Cancel
Save