MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / InvalidateNewGRFInspectWindow

Function InvalidateNewGRFInspectWindow

src/newgrf_debug_gui.cpp:710–716  ·  view source on GitHub ↗

* Invalidate the inspect window for a given feature and index. * The index is normally an in-game location/identifier, such * as a TileIndex or an IndustryID depending on the feature * we want to inspect. * @param feature The feature we want to invalidate the window for. * @param index The index/identifier of the feature to invalidate. */

Source from the content-addressed store, hash-verified

708 * @param index The index/identifier of the feature to invalidate.
709 */
710void InvalidateNewGRFInspectWindow(GrfSpecFeature feature, uint index)
711{
712 if (feature == GSF_INVALID) return;
713
714 WindowNumber wno = GetInspectWindowNumber(feature, index);
715 InvalidateWindowData(WC_NEWGRF_INSPECT, wno);
716}
717
718/**
719 * Delete inspect window for a given feature and index.

Callers

nothing calls this directly

Calls 2

GetInspectWindowNumberFunction · 0.85
InvalidateWindowDataFunction · 0.70

Tested by

no test coverage detected