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

Function IncreaseCompanyHQSize

src/object_cmd.cpp:139–147  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

137 * @param tile The (northern) tile of the company HQ.
138 */
139static void IncreaseCompanyHQSize(TileIndex tile)
140{
141 TileArea ta = Object::GetByTile(tile)->location;
142 for (TileIndex t : ta) {
143 /* We encode the company HQ size in the animation state. */
144 SetAnimationFrame(t, GetAnimationFrame(t) + 1);
145 MarkTileDirtyByTile(t);
146 }
147}
148
149/**
150 * Get the size of the HQ.

Callers 1

UpdateCompanyHQFunction · 0.85

Calls 3

SetAnimationFrameFunction · 0.85
GetAnimationFrameFunction · 0.85
MarkTileDirtyByTileFunction · 0.70

Tested by

no test coverage detected