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

Function GetCompanyHQSize

src/object_cmd.cpp:154–158  ·  view source on GitHub ↗

* Get the size of the HQ. * @param tile The (northern) tile of the company HQ. * @return HQ size. */

Source from the content-addressed store, hash-verified

152 * @return HQ size.
153 */
154static uint8_t GetCompanyHQSize(TileIndex tile)
155{
156 /* We encode the company HQ size in the animation state. */
157 return GetAnimationFrame(tile);
158}
159
160/**
161 * Update the CompanyHQ to the state associated with the given score

Callers 4

UpdateCompanyHQFunction · 0.85
DrawTile_ObjectFunction · 0.85
AddAcceptedCargo_ObjectFunction · 0.85
TileLoop_ObjectFunction · 0.85

Calls 1

GetAnimationFrameFunction · 0.85

Tested by

no test coverage detected