changeset 4333:59805382c0c4 draft

(svn r6032) -Fix: when a farm is gone, remove the fields when it is full grown and should be harvest (not before that)
author truelight <truelight@openttd.org>
date Mon, 21 Aug 2006 09:22:44 +0000
parents 723ab9bdccf9
children 47cec3e723fe
files clear_cmd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/clear_cmd.c
+++ b/clear_cmd.c
@@ -680,7 +680,7 @@
 				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 {