Debug: Add more stats to dump map and veh stats console commands

pull/428/head
Jonathan G Rennison 2 years ago
parent 613c90e78f
commit bf618a3584

@ -59,6 +59,7 @@
#include "scope_info.h"
#include "event_logs.h"
#include "tile_cmd.h"
#include "object_base.h"
#include <time.h>
#include <set>
@ -2508,6 +2509,7 @@ DEF_CONSOLE_CMD(ConMapStats)
IConsolePrint(CC_DEFAULT, "");
IConsolePrintF(CC_DEFAULT, "towns: %u", (uint) Town::GetNumItems());
IConsolePrintF(CC_DEFAULT, "industries: %u", (uint) Industry::GetNumItems());
IConsolePrintF(CC_DEFAULT, "objects: %u", (uint) Object::GetNumItems());
return true;
}

@ -4552,6 +4552,7 @@ void DumpVehicleStats(char *buffer, const char *last)
line(it.second.template_train, "tmpl train");
buffer += seprintf(buffer, last, "\n");
}
buffer += seprintf(buffer, last, " %10s: %5u\n", "total", (uint)Vehicle::GetNumItems());
}
void ShiftVehicleDates(int interval)

Loading…
Cancel
Save