(svn r6032) -Fix: when a farm is gone, remove the fields when it is full grown and should be harvest (not before that)
authortruelight
Mon, 21 Aug 2006 09:22:44 +0000
changeset 4333 050e8ea8f3bb
parent 4332 240c2bcc448a
child 4334 99abd73de061
(svn r6032) -Fix: when a farm is gone, remove the fields when it is full grown and should be harvest (not before that)
clear_cmd.c
--- a/clear_cmd.c	Sun Aug 20 21:53:56 2006 +0000
+++ b/clear_cmd.c	Mon Aug 21 09:22:44 2006 +0000
@@ -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 {