| 1097 | } |
| 1098 | |
| 1099 | void PlantRandomFarmField(const Industry *i) |
| 1100 | { |
| 1101 | int x = i->location.w / 2 + Random() % 31 - 16; |
| 1102 | int y = i->location.h / 2 + Random() % 31 - 16; |
| 1103 | |
| 1104 | TileIndex tile = TileAddWrap(i->location.tile, x, y); |
| 1105 | |
| 1106 | if (tile != INVALID_TILE) PlantFarmField(tile, i->index); |
| 1107 | } |
| 1108 | |
| 1109 | /** |
| 1110 | * Perform a circular search around the Lumber Mill in order to find trees to cut |
no test coverage detected