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

This commit is contained in:
Jonathan G Rennison
2022-08-07 19:34:03 +01:00
parent 613c90e78f
commit bf618a3584
2 changed files with 3 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -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)