From 27ac2f589419a656d72607aa516d8225211032ad Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 21 Jun 2017 21:10:22 +0100 Subject: [PATCH] Scope info: Adjust formatting of vehicle dump info --- src/scope_info.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scope_info.cpp b/src/scope_info.cpp index 05f189b659..84e3f5de45 100644 --- a/src/scope_info.cpp +++ b/src/scope_info.cpp @@ -62,17 +62,19 @@ const char *scope_dumper::VehicleInfo(const Vehicle *v) } SetDParam(0, v->index); b = GetString(b, STR_VEHICLE_NAME, last); + b += seprintf(b, last, ", c:%d", (int) v->owner); if (HasBit(v->subtype, GVSF_VIRTUAL)) { b += seprintf(b, last, ", VIRT"); } if (v->First() && v->First() != v) { - b += seprintf(b, last, "), front: %u: (", v->First()->index); + b += seprintf(b, last, ", front: %u: (", v->First()->index); if (Vehicle::GetIfValid(v->First()->index) != v->First()) { b += seprintf(b, last, "INVALID PTR: %p)", v->First()); return this->buffer; } SetDParam(0, v->First()->index); b = GetString(b, STR_VEHICLE_NAME, last); + b += seprintf(b, last, ")"); } b += seprintf(b, last, ")"); } else {