* 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. */
| 708 | * @param index The index/identifier of the feature to invalidate. |
| 709 | */ |
| 710 | void 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. |
nothing calls this directly
no test coverage detected