* Can we inspect the data given a certain 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 inspect. * @param index The index/identifier of the feature to inspect. * @return true if there is something to show. */
| 746 | * @return true if there is something to show. |
| 747 | */ |
| 748 | bool IsNewGRFInspectable(GrfSpecFeature feature, uint index) |
| 749 | { |
| 750 | const NIFeature *nif = GetFeature(GetInspectWindowNumber(feature, index)); |
| 751 | if (nif == nullptr) return false; |
| 752 | return nif->helper->IsInspectable(index); |
| 753 | } |
| 754 | |
| 755 | /** |
| 756 | * Get the GrfSpecFeature associated with the tile. |
no test coverage detected