src/openttd.cpp
changeset 7645 efa25fcf7917
parent 7609 b70ffc13652a
child 7710 777524fbb1fb
equal deleted inserted replaced
7644:a7ff5c8ae47e 7645:efa25fcf7917
  2180 				if (st->goods[c].cargo.Count() != 0) SETBIT(st->goods[c].acceptance_pickup, GoodsEntry::PICKUP);
  2180 				if (st->goods[c].cargo.Count() != 0) SETBIT(st->goods[c].acceptance_pickup, GoodsEntry::PICKUP);
  2181 			}
  2181 			}
  2182 		}
  2182 		}
  2183 	}
  2183 	}
  2184 
  2184 
       
  2185 	if (CheckSavegameVersion(78)) {
       
  2186 		Industry *i;
       
  2187 		uint j;
       
  2188 		FOR_ALL_INDUSTRIES(i) {
       
  2189 			const IndustrySpec *indsp = GetIndustrySpec(i->type);
       
  2190 			for (j = 0; j < lengthof(i->produced_cargo); j++) {
       
  2191 				i->produced_cargo[j] = indsp->produced_cargo[j];
       
  2192 			}
       
  2193 			for (j = 0; j < lengthof(i->accepts_cargo); j++) {
       
  2194 				i->accepts_cargo[j] = indsp->accepts_cargo[j];
       
  2195 			}
       
  2196 		}
       
  2197 	}
  2185 
  2198 
  2186 	return true;
  2199 	return true;
  2187 }
  2200 }
  2188 
  2201 
  2189 /** Reload all NewGRF files during a running game. This is a cut-down
  2202 /** Reload all NewGRF files during a running game. This is a cut-down