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

Function GetFeatureNum

src/newgrf_debug_gui.cpp:230–233  ·  view source on GitHub ↗

* Get the feature number related to the window number. * @param window_number The window to get the feature number for. * @return The feature number. */

Source from the content-addressed store, hash-verified

228 * @return The feature number.
229 */
230static inline GrfSpecFeature GetFeatureNum(uint window_number)
231{
232 return (GrfSpecFeature)GB(window_number, 24, 8);
233}
234
235/**
236 * Get the NIFeature related to the window number.

Callers 7

GetFeatureFunction · 0.85
HasChainIndexMethod · 0.85
UpdateWidgetSizeMethod · 0.85
DrawMainPanelWidgetMethod · 0.85
OnClickMethod · 0.85
OnQueryTextFinishedMethod · 0.85

Calls 1

GBFunction · 0.85

Tested by

no test coverage detected