From a33153979e6677b0fbd0b73601a873c1889aca32 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 31 May 2018 18:53:39 +0100 Subject: [PATCH] Add scope info logging to LoadUnloadVehicle --- src/economy.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/economy.cpp b/src/economy.cpp index d99955a286..926a95eebb 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -53,6 +53,7 @@ #include "linkgraph/refresh.h" #include "tracerestrict.h" #include "tbtr_template_vehicle.h" +#include "scope_info.h" #include "table/strings.h" #include "table/pricebase.h" @@ -1679,6 +1680,8 @@ static void LoadUnloadVehicle(Vehicle *front) if (front->type == VEH_TRAIN) station_vehicle = Train::From(front)->GetStationLoadingVehicle(); TileIndex station_tile = station_vehicle->tile; + SCOPE_INFO_FMT([&], "LoadUnloadVehicle: %s, %s, %s, %X", scope_dumper().StationInfo(st), scope_dumper().VehicleInfo(front), scope_dumper().VehicleInfo(station_vehicle), station_tile); + bool pull_through_mode = false; bool load_unload_not_yet_in_station = false; if (front->type == VEH_TRAIN && front->cur_real_order_index < front->GetNumOrders()) {