diff options
author | tron <tron@openttd.org> | 2006-03-22 08:48:50 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-22 08:48:50 +0000 |
commit | 9428ab372f45fd8072a9996533f369241b79014b (patch) | |
tree | b0c8be05e2dd14ba1d565d5c647cd7ec4e38dfb9 /industry_cmd.c | |
parent | 3b16ae365b34ee821b4dc4381c284a227f4dec3e (diff) | |
download | openttd-9428ab372f45fd8072a9996533f369241b79014b.tar.xz |
(svn r4007) Add a function to make a farm field tile
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index 66db19184..fe0c79213 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -968,12 +968,7 @@ static void PlantFarmField(TileIndex tile) BEGIN_TILE_LOOP(cur_tile, size_x, size_y, tile) cur_tile = TILE_MASK(cur_tile); if (!IsBadFarmFieldTile2(cur_tile)) { - SetTileType(cur_tile, MP_CLEAR); - SetTileOwner(cur_tile, OWNER_NONE); - SetFieldType(cur_tile, field_type); - SetFenceSW(cur_tile, 0); - SetFenceSE(cur_tile, 0); - SetClearGroundDensity(cur_tile, CL_FIELDS, 3); + MakeField(cur_tile, field_type); SetClearCounter(cur_tile, counter); MarkTileDirtyByTile(cur_tile); } |