Debug: Add various train fields to the vehicle debug window
This commit is contained in:
@@ -143,6 +143,12 @@ class NIHVehicle : public NIHelper {
|
|||||||
gvc.cached_total_length, gvc.cached_veh_length);
|
gvc.cached_total_length, gvc.cached_veh_length);
|
||||||
print(buffer);
|
print(buffer);
|
||||||
}
|
}
|
||||||
|
if (v->type == VEH_TRAIN) {
|
||||||
|
const Train *t = Train::From(v);
|
||||||
|
seprintf(buffer, lastof(buffer), " Wait counter: %u, rev distance: %u, TBSN: %u, speed restriction: %u",
|
||||||
|
t->wait_counter, t->reverse_distance, t->tunnel_bridge_signal_num, t->speed_restriction);
|
||||||
|
print(buffer);
|
||||||
|
}
|
||||||
|
|
||||||
if (HasBit(v->vehicle_flags, VF_SEPARATION_ACTIVE)) {
|
if (HasBit(v->vehicle_flags, VF_SEPARATION_ACTIVE)) {
|
||||||
std::vector<TimetableProgress> progress_array = PopulateSeparationState(v);
|
std::vector<TimetableProgress> progress_array = PopulateSeparationState(v);
|
||||||
|
Reference in New Issue
Block a user