mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
Add scope info logging to DeleteVisibleTrain
This commit is contained in:
parent
9a5986fa70
commit
1c04653518
@ -41,6 +41,7 @@
|
||||
#include "autoreplace_func.h"
|
||||
#include "engine_func.h"
|
||||
#include "bridge_signal_map.h"
|
||||
#include "scope_info.h"
|
||||
|
||||
#include "table/strings.h"
|
||||
#include "table/train_cmd.h"
|
||||
@ -4751,6 +4752,8 @@ Trackdir Train::GetVehicleTrackdir() const
|
||||
*/
|
||||
void DeleteVisibleTrain(Train *v)
|
||||
{
|
||||
SCOPE_INFO_FMT([v], "DeleteVisibleTrain: %s", scope_dumper().VehicleInfo(v));
|
||||
|
||||
FreeTrainTrackReservation(v);
|
||||
TileIndex crossing = TrainApproachingCrossingTile(v);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user