summaryrefslogtreecommitdiff
path: root/clear_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-21 09:22:44 +0000
committertruelight <truelight@openttd.org>2006-08-21 09:22:44 +0000
commit95b4248f252d8ac7979bf28b91ade4219a7e2da9 (patch)
tree5249d94097590a114b42b619f38946cb8d25fcab /clear_cmd.c
parent1c989670a8501337a043611bceeb5ab4083d320f (diff)
downloadopenttd-95b4248f252d8ac7979bf28b91ade4219a7e2da9.tar.xz
(svn r6032) -Fix: when a farm is gone, remove the fields when it is full grown and should be harvest (not before that)
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 df7763a7e..1698affbb 100644
--- a/clear_cmd.c
+++ b/clear_cmd.c
@@ -680,7 +680,7 @@ static void TileLoop_Clear(TileIndex tile)
SetClearCounter(tile, 0);
}
- if (GetIndustryIndexOfField(tile) == INVALID_INDUSTRY) {
+ if (GetIndustryIndexOfField(tile) == INVALID_INDUSTRY && GetFieldType(tile) >= 7) {
/* This farmfield is no longer farmfield, so make it grass again */
MakeClear(tile, CLEAR_GRASS, 0);
} else {