clear_cmd.c
changeset 4815 d702c4027451
parent 4560 434cb4b568d4
child 5385 3868f2e6db9b
equal deleted inserted replaced
4814:8e8f3b110279 4815:d702c4027451
   680 				SetClearCounter(tile, 0);
   680 				SetClearCounter(tile, 0);
   681 			}
   681 			}
   682 
   682 
   683 			if (GetIndustryIndexOfField(tile) == INVALID_INDUSTRY && GetFieldType(tile) >= 7) {
   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, 2);
   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;
   689 				SetFieldType(tile, field_type);
   689 				SetFieldType(tile, field_type);
   690 			}
   690 			}