Debug: Show cached sprite bounds in vehicle debug window

This commit is contained in:
Jonathan G Rennison
2021-01-03 14:44:29 +00:00
parent 343777e749
commit bf313338c0

View File

@@ -178,6 +178,10 @@ class NIHVehicle : public NIHelper {
print(buffer); print(buffer);
} }
seprintf(buffer, lastof(buffer), " Cached sprite bounds: (%d, %d) to (%d, %d)",
v->sprite_seq_bounds.left, v->sprite_seq_bounds.top, v->sprite_seq_bounds.right, v->sprite_seq_bounds.bottom);
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);
if (!progress_array.empty()) { if (!progress_array.empty()) {