* Increase the HQ size. * @param tile The (northern) tile of the company HQ. */
| 137 | * @param tile The (northern) tile of the company HQ. |
| 138 | */ |
| 139 | static 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. |
no test coverage detected