From 894fd6c609067eaae7872b08608f1a9aff7e4baa Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 7 Jul 2020 18:22:06 +0100 Subject: [PATCH] Add separation state to DumpVehicleFlags --- src/vehicle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index cdef9a6925..8679d17a3b 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -3853,6 +3853,8 @@ char *Vehicle::DumpVehicleFlags(char *b, const char *last) const 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"); + if (this->ahead_separation && this->behind_separation) b += seprintf(b, last, ", Sp"); + if (!!this->ahead_separation != !!this->behind_separation) b += seprintf(b, last, ", bad Sp"); return b; }