Debug: Show industry GRF local ID in debug window

This commit is contained in:
Jonathan G Rennison
2022-09-03 20:48:23 +01:00
parent 48d0a0e15c
commit 0400f06d9e

View File

@@ -897,6 +897,10 @@ class NIHIndustry : public NIHelper {
seprintf(buffer, lastof(buffer), " Layout anim inhibit mask %u: " OTTD_PRINTFHEX64, (uint)i, indsp->layout_anim_masks[i]);
output.print(buffer);
}
if (indsp->grf_prop.grffile != nullptr) {
seprintf(buffer, lastof(buffer), " GRF local ID: %u", indsp->grf_prop.local_id);
output.print(buffer);
}
}
}