src/openttd.cpp
changeset 9307 ea18838b527e
parent 9305 0c214cd8b39e
child 9332 2e120d0bd632
equal deleted inserted replaced
9306:01a397b0b8ba 9307:ea18838b527e
  1961 	if (CheckSavegameVersion(32)) {
  1961 	if (CheckSavegameVersion(32)) {
  1962 		Industry *i;
  1962 		Industry *i;
  1963 
  1963 
  1964 		for (TileIndex t = 0; t < map_size; t++) {
  1964 		for (TileIndex t = 0; t < map_size; t++) {
  1965 			if (IsTileType(t, MP_CLEAR) && IsClearGround(t, CLEAR_FIELDS)) {
  1965 			if (IsTileType(t, MP_CLEAR) && IsClearGround(t, CLEAR_FIELDS)) {
       
  1966 				/* remove fields */
  1966 				MakeClear(t, CLEAR_GRASS, 3);
  1967 				MakeClear(t, CLEAR_GRASS, 3);
       
  1968 			} else if (IsTileType(t, MP_CLEAR) || IsTileType(t, MP_TREES)) {
       
  1969 				/* remove fences around fields */
       
  1970 				SetFenceSE(t, 0);
       
  1971 				SetFenceSW(t, 0);
  1967 			}
  1972 			}
  1968 		}
  1973 		}
  1969 
  1974 
  1970 		FOR_ALL_INDUSTRIES(i) {
  1975 		FOR_ALL_INDUSTRIES(i) {
  1971 			uint j;
  1976 			uint j;