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

Function GetFeatureIndex

src/newgrf_debug_gui.cpp:60–63  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

58 * @return the feature index
59 */
60static inline uint GetFeatureIndex(uint window_number)
61{
62 return GB(window_number, 0, 24);
63}
64
65/**
66 * Get the window number for the inspect window given a

Callers 3

GetFeatureIndexMethod · 0.85
ValidateChainIndexMethod · 0.85
OnClickMethod · 0.85

Calls 1

GBFunction · 0.85

Tested by

no test coverage detected