Debug: Add more stats to dump map and veh stats console commands
This commit is contained in:
@@ -59,6 +59,7 @@
|
|||||||
#include "scope_info.h"
|
#include "scope_info.h"
|
||||||
#include "event_logs.h"
|
#include "event_logs.h"
|
||||||
#include "tile_cmd.h"
|
#include "tile_cmd.h"
|
||||||
|
#include "object_base.h"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
@@ -2508,6 +2509,7 @@ DEF_CONSOLE_CMD(ConMapStats)
|
|||||||
IConsolePrint(CC_DEFAULT, "");
|
IConsolePrint(CC_DEFAULT, "");
|
||||||
IConsolePrintF(CC_DEFAULT, "towns: %u", (uint) Town::GetNumItems());
|
IConsolePrintF(CC_DEFAULT, "towns: %u", (uint) Town::GetNumItems());
|
||||||
IConsolePrintF(CC_DEFAULT, "industries: %u", (uint) Industry::GetNumItems());
|
IConsolePrintF(CC_DEFAULT, "industries: %u", (uint) Industry::GetNumItems());
|
||||||
|
IConsolePrintF(CC_DEFAULT, "objects: %u", (uint) Object::GetNumItems());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -4552,6 +4552,7 @@ void DumpVehicleStats(char *buffer, const char *last)
|
|||||||
line(it.second.template_train, "tmpl train");
|
line(it.second.template_train, "tmpl train");
|
||||||
buffer += seprintf(buffer, last, "\n");
|
buffer += seprintf(buffer, last, "\n");
|
||||||
}
|
}
|
||||||
|
buffer += seprintf(buffer, last, " %10s: %5u\n", "total", (uint)Vehicle::GetNumItems());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShiftVehicleDates(int interval)
|
void ShiftVehicleDates(int interval)
|
||||||
|
Reference in New Issue
Block a user