summaryrefslogtreecommitdiff
path: root/clear_cmd.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-10-11 21:20:53 +0000
committerDarkvater <Darkvater@openttd.org>2006-10-11 21:20:53 +0000
commite0787f3afaa4d736c92a6ccc53d5413ed6edc7e0 (patch)
tree7bffa57d62c9f8362c589b73e0bb029dd9b4daf2 /clear_cmd.c
parent61f3deb5dad79c58db9f8cf64588768aae52ae96 (diff)
downloadopenttd-e0787f3afaa4d736c92a6ccc53d5413ed6edc7e0.tar.xz
(svn r6739) -Fix (r6001): Crash on removing farmland belonging to a farm. The search would loop
around the edges causing some troubles. Also make sure that the land after farm removal is not barren but 2/3rd grass. Better suited.
Diffstat (limited to 'clear_cmd.c')
-rw-r--r--clear_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clear_cmd.c b/clear_cmd.c
index 0093d8bca..9ebd9e8bd 100644
--- a/clear_cmd.c
+++ b/clear_cmd.c
@@ -682,7 +682,7 @@ static void TileLoop_Clear(TileIndex tile)
if (GetIndustryIndexOfField(tile) == INVALID_INDUSTRY && GetFieldType(tile) >= 7) {
/* This farmfield is no longer farmfield, so make it grass again */
- MakeClear(tile, CLEAR_GRASS, 0);
+ MakeClear(tile, CLEAR_GRASS, 2);
} else {
field_type = GetFieldType(tile);
field_type = (field_type < 8) ? field_type + 1 : 0;