From f80bebae7cb55451d44f4bd95befee52409d8889 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 18 Dec 2016 00:39:22 +0000 Subject: [PATCH] Scope info: Log whether vehicle pointer is a virtual vehicle. --- src/scope_info.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scope_info.cpp b/src/scope_info.cpp index 19fa67c905..05f189b659 100644 --- a/src/scope_info.cpp +++ b/src/scope_info.cpp @@ -62,6 +62,9 @@ const char *scope_dumper::VehicleInfo(const Vehicle *v) } SetDParam(0, v->index); b = GetString(b, STR_VEHICLE_NAME, last); + 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); if (Vehicle::GetIfValid(v->First()->index) != v->First()) {