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

Function GetFieldType

src/clear_map.h:159–163  ·  view source on GitHub ↗

* Get the field type (production stage) of the field * @param t the field to get the type of * @pre GetClearGround(t) == CLEAR_FIELDS * @return the field type */

Source from the content-addressed store, hash-verified

157 * @return the field type
158 */
159inline uint GetFieldType(Tile t)
160{
161 assert(GetClearGround(t) == CLEAR_FIELDS);
162 return GB(t.m3(), 0, 4);
163}
164
165/**
166 * Set the field type (production stage) of the field

Callers 2

DrawTile_ClearFunction · 0.85
TileLoop_ClearFunction · 0.85

Calls 2

GetClearGroundFunction · 0.85
GBFunction · 0.85

Tested by

no test coverage detected