Add log of game events since last load and overall

Add console command
Add to crashlog
This commit is contained in:
Jonathan G Rennison
2019-05-16 20:15:44 +01:00
parent ddd48b61a2
commit ec1e848a7f
10 changed files with 70 additions and 0 deletions

View File

@@ -3746,6 +3746,8 @@ bool AfterLoadGame()
*/
void ReloadNewGRFData()
{
RegisterGameEvents(GEF_RELOAD_NEWGRF);
RailTypeLabel rail_type_label_map[RAILTYPE_END];
for (RailType rt = RAILTYPE_BEGIN; rt != RAILTYPE_END; rt++) {
rail_type_label_map[rt] = GetRailTypeInfo(rt)->label;