Scope info: Log whether vehicle pointer is a virtual vehicle.

This commit is contained in:
Jonathan G Rennison
2016-12-18 00:39:22 +00:00
parent cea0d42548
commit f80bebae7c

View File

@@ -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()) {