From 98aa58a6b4d451c3ef73c3d2db20543ca4039c8f Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 31 Jan 2019 01:44:08 +0000 Subject: [PATCH] Log position tile where it differs from vehicle tile in DumpVehicleFlags --- src/vehicle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 823f068753..8dcf0b0eb5 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -3712,6 +3712,8 @@ char *Vehicle::DumpVehicleFlags(char *b, const char *last) const b += seprintf(b, last, ", ["); b = DumpTileInfo(b, last, this->tile); b += seprintf(b, last, "]"); + TileIndex vtile = TileVirtXY(this->x_pos, this->y_pos); + if (this->tile != vtile) b += seprintf(b, last, ", VirtXYTile: %X (%u x %u)", vtile, TileX(vtile), TileY(vtile)); if (this->cargo_payment) b += seprintf(b, last, ", CP"); return b; }