clear_cmd.c
changeset 4333 2ff83c9c81fa
parent 4328 23dd79414386
child 4344 5d0e40cd67b9
equal deleted inserted replaced
4332:805122cf25e8 4333:2ff83c9c81fa
   678 				return;
   678 				return;
   679 			} else {
   679 			} else {
   680 				SetClearCounter(tile, 0);
   680 				SetClearCounter(tile, 0);
   681 			}
   681 			}
   682 
   682 
   683 			if (GetIndustryIndexOfField(tile) == INVALID_INDUSTRY) {
   683 			if (GetIndustryIndexOfField(tile) == INVALID_INDUSTRY && GetFieldType(tile) >= 7) {
   684 				/* This farmfield is no longer farmfield, so make it grass again */
   684 				/* This farmfield is no longer farmfield, so make it grass again */
   685 				MakeClear(tile, CLEAR_GRASS, 0);
   685 				MakeClear(tile, CLEAR_GRASS, 0);
   686 			} else {
   686 			} else {
   687 				field_type = GetFieldType(tile);
   687 				field_type = GetFieldType(tile);
   688 				field_type = (field_type < 8) ? field_type + 1 : 0;
   688 				field_type = (field_type < 8) ? field_type + 1 : 0;