Add town and industry counts to dump_map_stats command

This commit is contained in:
Jonathan G Rennison
2021-12-08 17:34:34 +00:00
parent b69521ea87
commit 585c3fe9ca

View File

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