summaryrefslogtreecommitdiff
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
commit94f1f758258e00d15550c8944009c8a4ed9226ec (patch)
tree5249d94097590a114b42b619f38946cb8d25fcab
parent82107721387d65f8eb0ad06f05a15e255a42f109 (diff)
downloadopenttd-94f1f758258e00d15550c8944009c8a4ed9226ec.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)
-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 {